Hi,
My hosting provider recently rolled out new servers using PHP 5.4.11
My other sites with them utilize PHP 5.2.17
I'm seeing errors on the newer server related to Sweaver. It's configured the same, and is the same version as I've used on the older sites, so the version of PHP is the only difference I can think of.
Here's what I'm seeing:
Notice: Array to string conversion in sweaver_plugin_advanced->sweaver_form() (line 59 of /home/boundle2/public_html/sites/all/modules/sweaver/plugins/sweaver_plugin_advanced/sweaver_plugin_advanced.inc).
Warning: Invalid argument supplied for foreach() in element_children() (line 6400 of /home/boundle2/public_html/includes/common.inc).
Warning: Illegal string offset '#children' in drupal_render() (line 5867 of /home/boundle2/public_html/includes/common.inc).
Warning: Illegal string offset '#children' in drupal_render() (line 5877 of /home/boundle2/public_html/includes/common.inc).
Warning: Illegal string offset '#children' in drupal_render() (line 5915 of /home/boundle2/public_html/includes/common.inc).
Warning: Illegal string offset '#printed' in drupal_render() (line 5922 of /home/boundle2/public_html/includes/common.inc).
If I disable the advanced plugin, the error does go away, but unfortunately, I definitely need the advanced capabilities of the modules.
Any ideas?
Thanks, in advance, for taking a look for for your work on this module. I LOVE IT!
Comment | File | Size | Author |
---|---|---|---|
#4 | new-error-messages-fix-1968026-3.patch | 820 bytes | dagomar |
Comments
Comment #1
flachica CreditAttribution: flachica commentedI've seen this exception happens when you install a module that depends on a third party to operate, particularly when installing Grammar Library. I made the installation of dependent modules one by one and the problem no longer come back to me.
Comment #2
play4quarters CreditAttribution: play4quarters commentedThanks flachica.
I will definitely circle back, don't see any new modules I've not integrated before, other than bean.
For now, I've disabled sweaver. Once I'm completed with the project, I'll make a copy and see if it's a module conflict so it may be of assistance to others.
Thanks much.
Comment #3
dagomar CreditAttribution: dagomar commentedQuick fix for this, change:
to
This SHOULD be made into a patch but I haven't time now. Note that the error message is relevant, the code tries to append a string to an array, which is impossible.
Comment #4
dagomar CreditAttribution: dagomar commentedHere's a patch.
Comment #5
alibama CreditAttribution: alibama commentedThank you dagomar - this fixed the error messages on my site - I'm running a bitnami stack (ubuntu based) for drupal 7
Comment #6
skesslerWhy was the patch not tested? Is this something to be concerned about?
Comment #7
play4quarters CreditAttribution: play4quarters commentedThanks dagomar. This correction also worked for me. Much appreciated
Comment #8
dagomar CreditAttribution: dagomar commentedI don't understand why it wasn't tested, when I looked right after I posted the patch it gave some sort of warning about the sweaver module on the test site, but now it only says 'postponed'. Maybe I can change the status and it will try to test again?
Comment #9
dagomar CreditAttribution: dagomar commentedTry to test the patch again...
Comment #10
dagomar CreditAttribution: dagomar commentedOk, sorry I found what I think is going wrong. The sweaver module has errors in the test, thats why the patch cannot be tested. See here:
https://qa.drupal.org/pifr/test/270793
I'll create a new issue for this shall I?
Comment #11
joelpittetThis patch is correct, so I'm RTBCing it;)
Comment #12
alibama CreditAttribution: alibama as a volunteer commentedrtbc +3 - I'm using this as standard on all production sites
Comment #13
alibama CreditAttribution: alibama commentedStill using this patch 3 years later