Unable to save settings
Zarevac - May 2, 2009 - 08:42
| Project: | Calais |
| Version: | 6.x-3.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | febbraro |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
For some reason beyond my understanding after installing the mod on the latest version of Drupal without any errors I cannot save the settings at admin/settings/calais/calais-node
I hit save and then it goes back to the calais settings but nothing is saved.
Also batch processing gives me the following: An error occurred. /batch?id=13&op=do <br /> <b>Fatal error</b>: Call to undefined function dpm() in <b>/sites/all/modules/opencalais/calais.admin.inc</b> on line <b>416</b><br />

#1
Lets try fixing that batch error first and maybe that will fix the other problem you are having (doubt it, but it's a start)
Try this patch to fix that dpm() problem you are having. #429560: Flaming red errors upon bulk processing Either that patch or install/enable the devel module until I get the next release out, or use the dev release.
#2
Yep, batch got fixed with the dev release.
However still no change in saving, Ill install Devel and get back to you.
#3
I activated Devel and checked some things out, but don't see anything strange. What should I be looking for exactly? I uninstalled the mod and re-activated it again but no avail.
#4
Strange indeed, but this is not the first time I have heard of this. Not sure if other modules have had similar issues.
Can you try to debug a bit? In modules/opencalais/opencalais.admin.inc there is a function calais_admin_settings_submit that handles the save from clicking the submit. Can you put some prints/debugs in there to see if it even gets there? Could be a FAPI problem if that function us never getting called.
Try something simple like changing:
function calais_admin_settings_submit($form, &$form_state) {
system_settings_form_submit($form, $form_state);
...
to
function calais_admin_settings_submit($form, &$form_state) {
dpm("In calais_admin_settings_submit");
system_settings_form_submit($form, $form_state);
dpm("After system_settings_form_submit");
etc...
The dpm function requires the devel module, use print or drupal_set_message if you dont have devel enabled anymore.
See what that turns up. Thanks.
#5
OK made the changes and Devel is still on, dont see anything strange. No errors afaik. But then again I dont know what to look for and I am not that experienced with Devel.
I was wonderin if Mod Secure could be an issue? Not that I can/will turn it off.
But e.g. menu re-ordering inside the admin never works with me due to mod_secure
#6
Upon a "save" when the page refreshes where you might normally see "Setting have been saved" you should see the mesages you put in to print. If you dont see them, that tells me it is never even getting to the submit handler.
Any clue what mod_secure was doing to screw up that menu reordering?
#7
Afaik no "Setting have been saved" message.
Mod_secure blocks the ajax that Drupal uses to re-order the menu's in admin. So re-ordering is possible but only by accessing each menu item and editing them with the drop box.
#8
I double checked the mod_secure logs but there is nothing in there for calais. I do not see however that the Settings are saved so there must be another cause.
#9
Unfortunately I can't reproduce it, so I can't help much in debugging.
This is the first function that gets called on submission, http://api.drupal.org/api/function/drupal_get_form/6 that is where the debugging will have to start to see what path it takes through that function. That is what is supposed to determine that the form was submitted and it is time to save and call any/all submit handlers and validation handlers.
If I can get this behavior to happen for me I will dive in. If you discover anything else, please let me know.
#10
same problem here
waiting for a solution
#11
@lennyaspen Sorry I can' reproduce it (using this on 10+ sites), but if you can any information you can provide to help me or others get to the bottom of this I'd greatly appreciate it.
#12
Calais Bulk Processing
Calais Bulk Processing has encountered an error.
Please continue to the error page
An error occurred. /batch?id=73&op=do <br /> <b>Fatal error</b>: Call to undefined function dpm() in <b>/home/lenny/public_html/modules/opencalais/calais.admin.inc</b> on line <b>416</b><br />
sorry i thought it was the same so i didn`t post it
i`m not to much of a developer so if you want anything else ask me...
btw very nice module
#13
@lennyaspen see #429560: Flaming red errors upon bulk processing this is a different issue
#14
same problem here.
#15
Seeing the same error of not being able to save node settings (It accepts the api settings and key but not node settings). Drupal 6.14
I compared this with another instance ( 6.10 upgraded to 6.14 ) I have that is working and found that the variable table did not have all the settings ( especially node settings ).
Might try and export / import variables to see if that fixes it.