Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

[SOLVED] Error in image_meta.php

Old Aug 23, 2013, 08:44 AM
2 posts · Aug 2013
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....

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:

$meta = wp_get_attachment_metadata();
if( empty( $meta ) ) 
Old Aug 23, 2013, 08:48 AM
2 posts · Aug 2013
While writing the topic, I discovered what happened:

- I created an actual page template in the theme folder and set it for one page

- Set also the Virtual Template to image

- Disabled the actual template and the page gets locked into an image VT

- The notice and warnings pop-up

- Enabled the actual template back

- Selected Default Template

- Updated

- Was able to set the VT back to Best match...
Old Aug 23, 2013, 10:30 AM
lmilesw's Avatar
10,174 posts · Jul 2009
Central New York State USA
So can this be set to "Solved"? To do that you can just click on "Thread Tools" and then click on "Mark this thread as solved".
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:30 PM.

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