8 years ago
26
Topic

Hello, hope you can help me. 

My form has 16 custom fields, I need to add 2 more but I'm stuck on "Validating, please wait" message and I can't add new fields anywhere. When I click on save, nothing happens.

Here's how it looks:

http://s22.postimg.org/3ogclwxa9/2015_08_11_11_32_12.jpg

I've modified the php.ini file to match the req. of seblod 3.7.0 (the one I'm using on Joomla 3)

I'm using seblod-minima template which I've modified to suit my needs

I've tried to clear the cache - no result.

Tried different browsers - no result.

What could cause this?

Get a VIP membership
7 years ago
0
Level 1

Hi!

I have the same problem. In the php.ini I tried to change to (like I saw in others topics) :

max_file_uploads = 50
max_input_vars = 3000

But no result. I have SEBLOD V3.8 on WAMPSERVER localhost and on my content type I have almost 90 fields.

Any idea to solve this?

Regards.

4229 Posts
Kadministrator
7 years ago
0
Level 1

Please verify that this settings are actually used (e.g. you need to restart your server after changes) by going to

System->System Information->Php information tab

7 years ago
1
Level 1

I checked and the setting are actually used in Php information tab (I restart the server) ; but the problem still continue.

4229 Posts
Kadministrator
7 years ago
0
Level 2

Check if you get any errors in the php error log, if you don't have access to those ask your hosting provider for help. There might be some limitations imposed by mod security or similar protection systems.

7 years ago
0
Level 1

Ok I checked the php error logs in my server and there are many error but I don't know what kind of information I need to find. Do you have an idea please?

7 years ago
1
Level 1

Hi,

Anybody could help please? Unfortunately I don't find the solution by myself and I can't still add new field.

My php error log displays that in each open of content type, creation of new field and save of new field. I also tried to put my error report to the lower level but the problem is still here.

Do you think the php errors are my problem?

[01-Jun-2016 20:41:33 Europe/Paris] PHP Strict standards: Declaration of CCKControllerField::postSaveHook() should be compatible with JControllerForm::postSaveHook(JModelLegacy $model, $validData = Array) in C:\wamp\www\leavefordive2\administrator\components\com_cck\controllers\field.php on line 17
[01-Jun-2016 20:41:33 Europe/Paris] PHP Stack trace:
[01-Jun-2016 20:41:33 Europe/Paris] PHP 1. {main}() C:\wamp\www\leavefordive2\administrator\index.php:0
[01-Jun-2016 20:41:33 Europe/Paris] PHP 2. JApplicationCms->execute() C:\wamp\www\leavefordive2\administrator\index.php:51
[01-Jun-2016 20:41:33 Europe/Paris] PHP 3. JApplicationAdministrator->doExecute() C:\wamp\www\leavefordive2\libraries\cms\application\cms.php:257
[01-Jun-2016 20:41:33 Europe/Paris] PHP 4. JApplicationAdministrator->dispatch() C:\wamp\www\leavefordive2\libraries\cms\application\administrator.php:152
[01-Jun-2016 20:41:33 Europe/Paris] PHP 5. JComponentHelper::renderComponent() C:\wamp\www\leavefordive2\libraries\cms\application\administrator.php:98
[01-Jun-2016 20:41:33 Europe/Paris] PHP 6. JComponentHelper::executeComponent() C:\wamp\www\leavefordive2\libraries\cms\component\helper.php:380
[01-Jun-2016 20:41:33 Europe/Paris] PHP 7. require_once() C:\wamp\www\leavefordive2\libraries\cms\component\helper.php:405
[01-Jun-2016 20:41:33 Europe/Paris] PHP 8. JControllerLegacy::getInstance() C:\wamp\www\leavefordive2\administrator\components\com_cck\cck.php:32
[01-Jun-2016 20:41:33 Europe/Paris] PHP 9. require_once() C:\wamp\www\leavefordive2\libraries\legacy\controller\legacy.php:291
4229 Posts
Kadministrator
7 years ago
0
Level 2

Hi,

this is just a message about coding standards, that has no effect on the functionality. BUT - if this message appears in the server response loaded by the seblod, it might break functionality as frontend javasript is expecting something else, so try setting joomla error reporting to None and see if it makes any difference.

7 years ago
0
Level 1

Again thank you for your help but there is no difference with joomla error reporting to none. I also tried in desperation to increase this settings to :

max_file_uploads = 100
max_input_vars = 6000

And no effect again...

4229 Posts
Kadministrator
7 years ago
0
Level 1

Do you use any protection systems like Admintools or mod_security (this one is used on the server, ask you hosting provider about it)? Both are known to create problems.

Also, check what the actual response from the server is when you add new field (it makes an ajax request and it seems it comes back with an error, see network tan in firebug or similar thing in developer tools in crome). Also check for any javascript errors on the page.

7 years ago
2
Level 1

There is mod security in my server folder and I have an script error in firebug when I add a new field :

TypeError: obj is null

$("#myid").val(obj.id); $("#jform_id").val(obj.id);

(ligne 558, col. 9)

I tried to move the mod_security folder out of my server folder (by cut and paste) and in this case there is still an error in the script.

7 years ago
1
Level 2

I was wondering what kind of problems create admintools or mod_security because I don't find explination about them?

4229 Posts
Kadministrator
7 years ago
0
Level 3

They can block some legitimate requests as they mistakenly think it is an attack

7 years ago
1
Level 1

OK I understand. So do you think that it create my script error and prevents me to add new field?

4229 Posts
Kadministrator
7 years ago
0
Level 2

It can be that or (more likely) javascript error that you are seeing. You need to solve that first - figure out where it comes from. If you are not already on the latest version of Seblod, please update first.

7 years ago
0
Level 1

Hi,

Again I'm comming with my validation problem. It don't want to let me in peace.

I uploaded the lastest version of Seblod, the lastest version of WAMPSERVER v.3.0.4 (my local server, I had before the v2.5) and I reinstalled seblod. This time I added 100 fields before the script error happened. The first time I added 90 fields before the script error. I also tried to change the server to XAMPP (also local server). Each time the script error happened.

The other weird thing that I don't understand is I have a problem on my validation field just only with one form (a form with one hundred field) my others forms correctly work (but there are fewer fields in this form).

When the error happen I'm here in the backend :

/administrator/index.php?option=com_cck&view=type&layout=edit&id= 501

And the file affected by the script error is :

/administrator/index.php?option=com_cck&view=field&tmpl=component &layout=edit

Do you think I need to modify directly the file .php ?

With firebug I confront the script between :

  1. my form with the script error,
  2. an other form where there is no problem (the both form are in the same app folder).

The both script are the same but on the first there is the error and no problem on the second. If the script is same how an error can happen?

TypeError: obj is null

$("#myid").val(obj.id); $("#jform_id").val(obj.id);

(ligne 563, col. 9)
I confess I 'm a bit lost.
7 years ago
0
Level 1

Hi ca_V,

the validation is an Ajax request, so you must look at the request and it's answer.

For that, you must use Firebug, and look at the "Network" Tab.


Please, Can you follow the steps below and give us some screenshot to help us

Open your form

Display Firebug panel, on the tab "Réseau" and clean it (Effacer)

Add a text in your field where is the validation active then click outside the field.
You will see the Ajax Request


You must get an answer with a statut "200"

Then have a look to the differents tabs, in particular the tab "Reponse"
If the validation is good, you must have something like that:

The answer is in Json Format. When it's good you have the name of the field + true.


Just give us some screenshot, it will help.

Regards.
Lionel

7 years ago
1
Level 1

Hi Lionel,

Thank you for your help.

I followed your steps and here the screenshot :

Is it enough to you?

4229 Posts
Kadministrator
7 years ago
0
Level 2

Hi,

you need to make a screnshot on the error example, this one seems to validate ok? 

Also there is difference between name (your screenshot) and title (lionell's), not sure on which one you are getting errors.

7 years ago
1
Level 1

Sorry I didn't understand. I hope this time it's ok.

Here the screenshot in my form where there is the error :

In the third request It seem it's not ok. When I look in the tab "Reponse"I have the code in the file in attachement.

When it happen I am in my form in the backend and I click on "Enregistrer" (save)

7 years ago
0
Level 2

In the fourth request I also have the code in attachment in the "reponse" tab.

And in the fifth request there is not "reponse" tab.

1 Post
consultech
7 years ago
1
Level 1

Hello everybody,

Same problem here for me with this following error : 

Strict Standards: Declaration of CCKControllerType::postSaveHook() should be compatible with JControllerForm::postSaveHook(JModelLegacy $model, $validData = Array) in /administrator/components/com_cck/controllers/type.php on line 17
La dernière requête a été rejetée car elle contenait un identifiant de sécurité invalide. Veuillez actualiser la page et réessayer.

in the same condition.

J 3.5.1 / Seblod 3.8.3

4229 Posts
Kadministrator
7 years ago
0
Level 2

ca_V: there is no error visible on those responses, status 303 only means page was redirected, which is normal after post. Only request that seems suspicious is the last one as it has 0 response size.
As Lionel wrote you need open new field, clear responses tab, then enter title, then click outside the title field. Now check responses tab and see what is there - validation happens after you finish entering data in the field, not when you click save. 

Consultech: what you see can be solved by setting joomla error reporting to a lower level or None

7 years ago
1
Level 1

Hi Klas,

You said :

open new field, clear responses tab, then enter title, then click outside the title field

Ok I understood that I need to do this in the form where there is error but where exactly in joomla? In the backend form and content type manager or in the frontend form?

In the backend, I add a new field (with the plus button), I add text in title (titre) and in name (nom) and I click outside and here the screenshot (it is in the backend where I have an script error when I click "save" to add field) :

In the frontend, I add text in the title field where the validation is active (like lionel) and I click outside and here the screenshot (in the frontend form I don't have script error when I click "save") :

I hope this time it is ok if this screenshots are not enough could you please let me know where I need to add new field.

4229 Posts
Kadministrator
7 years ago
0
Level 2

Hi,

in backend where your error is, check reply after you enter name in the first box (fields title). So, enter title, then click outside, leave field name out for now. 

There is no field editor in frontend, so leave that out for now.

In any case - I presume that you are hitting some server resurce limitation - execution time, memory limit etc and since you never get a reply to the validation request or it comes back empty. So solution is to increase those limits in php.ini and/or move to another, faster server.

7 years ago
0
Level 1

Hi,

OK. Here, I'm in the backend where my error is. I added a new field (with plus button), I added text in the first box ("Titre") then I click outside and no response (see in the screenshot). I also tried with fields already exit in the form (like article title fields) but also no response.

If the problem is the server limitation I think those limits can't be increase just with "max_inputs_vars" and "max_file_uploads" because I already tried but no result. Do you have some tutorials link to help me with the php.ini?

And if changing server can help me, do you know a local server can work? I currently use WAMPSERVER 3.0.4 but it not work and I also tried with XAMPP server and also not work.

Get a Book for SEBLOD