Issue with js script when loading general configuration

More
10 years 8 months ago #45464 by Sylvain S.
Hi there,

First of all, I have to say thanks to all the team for this wonderfully useful free extension !

For my work, I have to set up some notifications in the general configuration of flexicontent. Here is my problem :
    When I clic on the flexi tab in the configuration page, the browser loads for about 10 sec without response then displays content
    Sometimes (it seem to display randomly) I get an error with the script loading of jquery.min.js
    No matter the setting I change, it is not saved when I validate it and return to the configuration page

Hope someone can help, I don't really understand the cause of my problem, I've been using flexicontent since one month now and this is the first time I see that.

Thanks in advance !

Firefox 27.0.1 (same in Chrome 33)
Joomla 3.2.1
FLEXIcontent 2.1.2 r1806 beta

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45466 by ggppdk
Hello

please install v2.1.3 Beta r1857,
it fixes an uninstall issue in case you need to uninstall FC

about loading of FLEXIcontent component configuration, it is slower in J3.x than it is in J2.5, due to Joomla j3.x loading some extra JS codem but still you describe long time , 10 seconds includes download time ? do you work locally on a new website ?

1. do you always get a JS error ?
some browsers will abort script execution if it takes more than nn seconds

2. just asking, what is your local PC CPU ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45472 by Sylvain S.
Thanks for the quick response.

I'll install this version monday and I'll inform you. Can it be the source of the problem ?

I'm not sure what you mean by "download time". I see the browser loading for ~3 sec, then it freezes for ~3s, the "no response" notification at the top of it appears and after ~4s finally displays the FC component configuration. I work on the intranet of an association, directly on their local network.

1. Yes the error appears every time if I don't stop its execution.

2. Intel i5 2.90 GHz

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45473 by ggppdk
Hello

tested there on local network, page is retrieved (2-3 seconds) and then
- there is 3-4 seconds freeze in firefox
- and about 1-2 seconds in chrome

we have tested this delay is due the CHOSEN jQuery library loaded by Joomla, chosen JS lib is shaping the drop down select

Here description of the issue in Joomla CMS development forum
groups.google.com/forum/#!topic ... hfyM4biFHg

- FLEXIcontent has a large number for parameters, many of the are drop-down selects, will see if there is some CSS class to add to parameters in order to prevent CHOOSEN library from freezing the form


to make sure that chosen JS lib is the problem, test this, edit file:
administrator\components\com_config\views\application\tmpl\default.php
and change:
JHtml::_('formbehavior.chosen', 'select');
to be:
//JHtml::_('formbehavior.chosen', 'select');




1. please let the form finished loading , if parameters are not saved this is a different issue, your server has a low configuration PHP limit on form parameters, FLEXIContent needs a form field parameter greater than 1000

you need this in your .htaccess files
Code:
php_value max_input_vars value 10000

(if you have suhosin patch on your server then add these too)
Code:
php_value suhosin.post.max_vars 10000 php_value suhosin.request.max_vars 10000

for full details please read this faq article:
Resolving failed installation, because of server limitations


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #46430 by Sylvain S.
Sorry for the delay of the answer.

The problem was effectively the configuration of php limit. I tried to add a .htaccess in the site folder, but it was not considered by the server. After allowing the override in apache conf, it resulted some internal server error.

After that, I finally found the famous php.ini file in which I edited the relevant fields. And it works ! Now FC is running without issue, it still have these slowdowns but queries are considered by the server !

Thanks for your help ggppdk

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #46434 by ggppdk
Hello

also in v2.2.0, we have work around the freeze due to chosen lib in J3.2 (Joomla team said to fix in J3.5 ?)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.314 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline