[SOLVED] General config (component) can not be saved

More
10 years 3 months ago - 10 years 3 months ago #58022 by bendeb
Hello,

I use Flexicontent 3.0.8

When I go to flexicontent general config ( www.mysite.com/administrator/index.php?o...ent=com_flexicontent ), set a modification and apply (or save & close), I am redirected to Joomla general config.
And when I return to Flexicontent general config, my previous modifications isn't applied.

So, I can no longer apply a modification in Flexicontent general config.

What can cause this problem ?

Thank in advance :)

Flexicontent 4.1.0b1
Joomla 3.9.18
Last edit: 10 years 3 months ago by ggppdk.

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

More
10 years 3 months ago - 10 years 3 months ago #58026 by ggppdk
Hello

When form size (=total form fields) is higher or close to the
PHP limitation variable: max_input_vars
then Javascript will serialize the form into a single variable and submit it
-- IF a javascript error occurs then the form is not serialized, you get an PHP error (max_input_vars) in the server that will redirect to Joomla general config


Here is what to do/try:

1. press CTRL+F5 / F5 / command+R, (Windows / Linux / Apple\'s Safari) in the form once to make sure that you have loaded latest JS / CSS files
and retry to save
if the above does not work, then please check for the JS error and provide it here

2. another way is to edit .htaccess or php.ini and increase: max_input_vars (and more variables if you use suhosin)
but regardless of doing increasing max_input_vars, please provide JS error


-- 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 review. Thanks!
Last edit: 10 years 3 months ago by ggppdk.

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

More
10 years 3 months ago #58030 by bendeb
Hello ggppdk and thank for your answer.

In Flexicontent PHP/DB requirements I can see these informations :
Code:
max_input_vars 10000 Obligatoire 1000 Recommended 2000 suhosin.post.max_vars 1000 Obligatoire 1000 Recommended 2000 suhosin.request.max_vars 1000 Obligatoire 1000 Recommended 2000

I don't know how to check javascript errors. How can I see these ?

Thank :)

Flexicontent 4.1.0b1
Joomla 3.9.18

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

More
10 years 3 months ago #58031 by ggppdk
Hello

did you try CTRL-F5 once before trying to save ?


-- 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 review. Thanks!

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

More
10 years 3 months ago #58033 by bendeb
Yes, I apply ctrl+F5 before save the general config. :)

Flexicontent 4.1.0b1
Joomla 3.9.18

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

More
10 years 3 months ago #58038 by ggppdk
Hello

there must be a JS error,

you can send me a PM with super admin login

it should be quick to view it,
- if it is FC bug i will fix it


-- 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 review. Thanks!

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

More
10 years 3 months ago #58040 by bendeb
I send you a PM with admin login.
Thank you :)

Flexicontent 4.1.0b1
Joomla 3.9.18

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

More
10 years 3 months ago - 10 years 3 months ago #58041 by ggppdk
Hello

i found why the form (FLEXIcontent compoent parameters) does not get serialized

- You have: max_input_vars: 10000 , so the serialization is not triggered

but you have not increased the suhosin variables limits to be the same value
suhosin.post.max_vars
suhosin.request.max_vars

-- to solve with current version, v3.0.8 either change max_input_vars down to 1000
or better increase the suhosin variables up to 10000 (to the same value as max_input_vars)


-- 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 review. Thanks!
Last edit: 10 years 3 months ago by ggppdk.

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

More
10 years 3 months ago #58045 by bendeb
Thank ggppdk.

How can I change the suhosin variables ?

I have a mutualized hosting (Ex2Hosting, enterprise plan).
Does these variables have to be changed in php.ini ?
If yes, I have no access to this php.ini file, so what can I do to fix it ?

Thank you again :)

Flexicontent 4.1.0b1
Joomla 3.9.18

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

More
10 years 3 months ago - 10 years 3 months ago #58046 by bendeb
I have followed this tutorial : www.flexicontent.org/documentation/faq/7...allation-upgrade/591

I add these few lines in .htaccess file to define php.ini location :

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/xxxxxxx/public_html
</IfModule>

xxxxxxxxx has replaced by mysite_account of course.

Then, I create a php.ini file and I put it in public_html.
Inside this php.ini file, I add these few lines :

max_input_vars=10000
suhosin.post.max_vars=10000
suhosin.request.max_vars=10000

Then, when I go to Flexicontent home page in my backend, I see that the modifications have been applied, it's nice :)
max_input_vars 10000 Obligatoire 1000 Recommended 2000
The suhosin variables disapeared.

But when I save the global config, I have a blank page and I have to actualize one or two times to see my backend correctly.
However, the setting have saved correctly, but because I have a blank page it is not convenient.

The problem is the same when I open a article and save it > blank page again.

So, what can I do to make it work correctly ?

Thank you :)

EDIT : to make my site working with article editing, I disable php.ini by renaming it to php.ini---
I'll give you FTP login in PM if you want to rename it and debug my problem. :)

Flexicontent 4.1.0b1
Joomla 3.9.18
Last edit: 10 years 3 months ago by bendeb.

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

Moderators: vistamediajoomlacornerggppdk
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
Save