Hi! I'm using Drupal 6.22, Wysiwyg 6.x-2.4 and PHP 5.3.6.
Problem: when I attach a file when creating a node, I see the error: "warning: Parameter 2 to xmlsitemap_node_form_alter() expected to be a reference, value given in /home/drupal/www/includes/common.inc on line 2892."
Perhaps this is due to the peculiarities of calling call_user_func_array () in PHP 5.3.
Sorry for my bad english> _ <
| Comment | File | Size | Author |
|---|---|---|---|
| bug.jpg | 161.92 KB | AyumuKasuga |
Comments
Comment #1
Anonymous (not verified) commentedYour pictures also shows other modules having an issue with the node. Perhaps another module is creating the issue or it may your PHP version. I see
from the system requirements page. So, I'm guessing this is could be a bug in xmlsitemap, Drupal core, or PHP but I don't know.
Comment #2
Anonymous (not verified) commentedI found an example of what should be done to quiet this. at #360605-200: PHP 5.3 Compatibility. I don't know if it fits xmlsitemap or if you need to find a module that isn't providing a reference in the argument data that should be.
Comment #3
dave reidThis generally means something is invoking hook_form_alter() with an incorrect $form_alter parameter.
Comment #4
ailgm commentedI'm not certain whether this is the correct fix, but we've had to alter the function declaration to get around an error, changing it to:
function xmlsitemap_node_form_alter(array &$form, &$form_state, $form_id)
i.e. removing "array " from the second parameter.
Comment #5
Anonymous (not verified) commented@ailgm: Removing the declarative array from the parameter isn't the correct fix. You need to find what is sending the function an incorrect data type. If it isn't an array then xmlsitemap will not work properly. I suggest you try disabling modules to find the one or multiple ones that cause the issue and propose a fix for that/those modules.
Comment #6
ailgm commentedThanks earnie - you're right. We looked further and found our problem in AdvGallery (http://drupal.org/node/1206096#comment-4763454).
Comment #7
dave reidMarking as a duplicate of #1206096: add menu_rebuild() in hook install