Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the upgrade to the latest 6.x-1.2 I got errors in the process, and now when I try to edit an existing node with a cck emfiled + media_youtube I get a WSOD when saving the node. The same on saving a new node.
In my PHP error log I find this error:
PHP Fatal error: Cannot redeclare class Zend_Loader in /usr/share/php5/Zend/Loader.php on line 31
Can you help me?
Comments
Comment #1
gp.mazzola CreditAttribution: gp.mazzola commentedIf I remove the ZendGdata directory from "/sites/all/libraries/" I have no more WSOD
Comment #2
Ross-Hunter CreditAttribution: Ross-Hunter commentedI had a similar problem, but this ended up working for me.
Around line 300 in media_youtube.module you will find
The default for $reset is false. I set it to true and then I was able to successfully upload videos. Then after it had successfully found the proper path to the Zend library I returned it to false, in order to prevent it from checking every time the module is called.
Hope this helps someone.
Comment #3
HongPong CreditAttribution: HongPong commentedbump - this issue should at least get documented. if you grab the Zend GData library and put it in /sites/all/libraries it works for me.
ie. download ZendGdata1.11.12, unzip that and put the ZendGdata1.11.12/library/Zend into the /sites/all/libraries/ -- so that Loader.php is right at sites/all/libraries/Zend/Loader.php .