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

gp.mazzola’s picture

If I remove the ZendGdata directory from "/sites/all/libraries/" I have no more WSOD

Ross-Hunter’s picture

I had a similar problem, but this ended up working for me.

Around line 300 in media_youtube.module you will find

 * @param boolean $reset
 *  (Optional) If TRUE, then reset the variable and attempt a new autodiscovery.
 * @return string
 *  The path to the Zend Gdata.php and related files.
 */
function media_youtube_zend_path($reset = FALSE) {
  static $path;

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.

HongPong’s picture

bump - 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 .