Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Error in image_meta.php


 
Prev Previous Post   Next Post Next
  #1  
Old Aug 23, 2013, 08:44 AM
brasofilo
 
2 posts · Aug 2013
[SOLVED] Error in image_meta.php

I'm not sure if it's me messing with the theme and trying to understand its template logic. But I'm receiving one notice and two warnings (with WP_DEBUG enabled). The virtual template is set to image and I'm not being able to set it as Best match....

Quote:
Notice: Uninitialized string offset: 0 in /wp-content/themes/testing/montezuma/includes/image_meta.php on line 34

Warning: array_keys() expects parameter 1 to be array, string given in /wp-content/themes/testing/montezuma/includes/image_meta.php on line 34

Warning: Invalid argument supplied for foreach() in /wp-content/themes/testing/montezuma/includes/image_meta.php on line 40
I'm solving it adding a check for $meta in the function bfa_image_meta:

Code:
$meta = wp_get_attachment_metadata();
if( empty( $meta ) ) 
    return;
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need help with this error massage: Parse error: syntax error, unexpected ' Siya Header configuration & styling 6 Jan 28, 2012 03:25 PM
[SOLVED] ERROR MESSAGE: Parse error: syntax error, unexpected T_STRING in /hsphere/lo Candy Atahualpa 3 Wordpress theme 1 Oct 31, 2010 03:00 PM
SEARCH ERROR: Catchable fatal error:Object of class WP_Error could not be converted angelarose Plugins & Atahualpa 3 Jul 8, 2010 05:05 PM
Parse error: syntax error, unexpected '<' in /home6/jonesber/public_html/wp-content/ jonesberries Atahualpa 3 Wordpress theme 2 Nov 30, 2009 03:33 AM
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 10:04 AM


All times are GMT -6. The time now is 05:11 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.