Do not upgrade dynamic headers - help!
I upgraded to the new Dynamic Headers version on this site:
http://equinecisers.com/wordpress/ and the message I got was the following: Fatal error: Call to undefined function show_media_header() in D:\Hosting\2781642\html\wordpress\wp-content\themes\atahualpa342\header.php on line 49 I tried to delete the plugin (which hadn't even been activated), to no avail. I even tried to restore the old header file. That didn't work either. So if this happens to anyone, revert to the old version of Dynamic Headers until there's a reply to this post. |
Did you create the new folder?
Quote:
|
Also, what settings did you use?
What's your url? |
Well, now we have a different problem. Using the older version of Dynamic Headers, I was able to place a static JPG header with no problem. Then I placed a SWF on the home page and got the following:
Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in D:\Hosting\2781642\html\wordpress\wp-content\plugins\dynamic-headers\custom-header.php on line 369 Warning: getimagesize(http://equinecisers.com/wordpress/wp...ges/header.swf) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in D:\Hosting\2781642\html\wordpress\wp-content\plugins\dynamic-headers\custom-header.php on line 369 URL : http://equinecisers.com/wordpress/ Update: I think it's because the /header-images/ folder wasn't chmod 777, so it looks like this site will have to wind up on a unix server. Darn. |
Nope, the chmod didn't work. It's something in the plugin itself but how to change that .php file to what WILL work, I have no idea.
|
BTW when the previous version of Dynamic Headers (3.1) was paired with Atahualpa 3.3.3, the Flash file worked. When I used it with Atahualpa 3.4.2, I got the error message.
|
Thinking, maybe this is because this site is on a Windows server, that could be the problem, but I put the same flash file in a Unix-based site I'm working on - same problem. Static images are displaying ok, Flash files not.
|
My goodness, I don't believe it ... but I fixed it.
There may be an easier way within Atahualpa (please feel free to tell me if there is!) but what I did was ... 1. downloaded Dynamic Headers' custom-header.php file (make sure you back up the original). 2. deleted lines 368 and 369, which refer to the "get...." function. 3. In references to .swf files in PHP code below the lines mentioned in #2, I placed the full path to the SWF file (replacing the php echo references), including the width and the height. What remains to be seen is why using WP 2.8.2, Ata 3.3.3 and Dynamic Headers 3.1 (not the latest version, but the last one before the new one), SWF files displayed with no problem. The only difference between the site where it worked and this site I'm working on now is the upgrade to Ata 3.4.2. |
Could you post the code you took out and inserted? I can't get mine to work.
|
Lines 368 and 369 that start with "GET" should be removed. Changes to code below I'll BOLD.
Replace what's in the original file with your file name (absolute path) and the file name's width and height. <script type="text/javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '800', 'height', '250', 'src', 'http://www.yourdomain/wordpress/wp-content/header-images/yourflashfile.swf', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'transparent', 'devicefont', 'false', 'id', 'mediaHeader', 'bgcolor', '#ffffff', 'name', 'mediaHeader', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', '<?php echo $dhnd_image_url_base.$swf_name; ?>', 'salign', '' ); //end AC code } </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="<?php echo $width; ?>" height="<?php echo $height; ?>" id="mediaHeader" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="wmode" value="transparent" /> <param name="movie" value="<?php echo '/'.$swf_src; ?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="<?php echo '/'.$swf_src; ?>" wmode="transparent" quality="high" bgcolor="#ffffff" width="800" height="250" name="mediaHeader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript> |
All times are GMT -6. The time now is 08:42 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.