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


  #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;
  #2  
Old Aug 23, 2013, 08:48 AM
brasofilo
 
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...
  #3  
Old Aug 23, 2013, 10:30 AM
lmilesw's Avatar
lmilesw
 
10,176 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.

Bookmarks

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:32 AM.


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