Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Warning in php code


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 18, 2012, 10:36 AM
carpin
 
7 posts · Dec 2012
I have under the blog message php warnings.
What could be cause of the warnings?

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

Warning: Invalid argument supplied for foreach() in /home/public_html/wp-content/themes/montezuma/includes/image_meta.php on line 40

Last edited by carpin; Dec 18, 2012 at 06:49 PM.
  #2  
Old Dec 18, 2012, 11:15 AM
jerryc
 
367 posts · Oct 2012
Florida
Did you customize anything:
  • in your php code?
  • elsewhere?
  #3  
Old Dec 18, 2012, 06:57 PM
carpin
 
7 posts · Dec 2012
No, I have only installed plug ins.
  #4  
Old Dec 18, 2012, 07:16 PM
juggledad's Avatar
juggledad
 
22,370 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
So what happens if you disable all the plugins?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 19, 2012, 09:39 AM
carpin
 
7 posts · Dec 2012
All the plugins disabled the warnings are still there.


http://www.steamdok.nl/aha-stappenplan/aha-mets/

Under the image two warnings.



the code for showing the image
<img src="http://www.steamdok.nl/wp-content/uploads/2012/12/Mets.png" alt="Mets" />

<!--more-->
  #6  
Old Dec 19, 2012, 10:14 AM
juggledad's Avatar
juggledad
 
22,370 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
check your wp-config.php file to see if you have the following line in it
HTML Code:
define('WP_DEBUG', true);
if so, change it to
HTML Code:
#define('WP_DEBUG', true);
also, did you add
HTML Code:
<?php bfa_image_meta(); ?>
to your postformat.php? if so Wy?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Dec 19, 2012 at 10:18 AM.
  #7  
Old Dec 19, 2012, 10:59 AM
carpin
 
7 posts · Dec 2012
Thanks for helping me

wp-config define('WP_DEBUG', false);

And where can I find postformat.php?
  #8  
Old Dec 19, 2012, 11:34 AM
juggledad's Avatar
juggledad
 
22,370 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
it's one of the virtual subtemplates in the theme options
also check single.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Dec 19, 2012, 11:53 AM
carpin
 
7 posts · Dec 2012
No <?php bfa_image_meta(); ?> code inserted in postformat.php and single.php
  #10  
Old Dec 19, 2012, 12:32 PM
juggledad's Avatar
juggledad
 
22,370 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
do an export of yout theme settings (via the theme option) and attach it to a reply
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Dec 19, 2012, 07:29 PM
carpin
 
7 posts · Dec 2012
theme settings
Attached Files
File Type: txt steamdok.txt (71.2 KB, 147 views)
  #12  
Old Dec 19, 2012, 07:59 PM
juggledad's Avatar
juggledad
 
22,370 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
that works fine in my site.

What type of post is the one that is having the issue?
Is there anything unique about it? anything imbedded? Images etc.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Dec 20, 2012, 07:21 PM
carpin
 
7 posts · Dec 2012
Only one image png, no text

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] TimThumb Scanner warning quintain Plugins & Atahualpa 2 Apr 12, 2012 03:53 AM
Warning message ! problem drey Header configuration & styling 3 May 14, 2010 11:15 AM
WARNING: Older WP versions being attacked paulae Installing & running WordPress 1 Dec 7, 2009 02:49 AM
BUG: php warning when postmeta is empty buzink Post-Kicker, -Byline & -Footer 0 Oct 12, 2009 06:53 AM
Was it checked with WP 2.7.1? I am getting multiple message like: Warning ... gm10 New Versions, & Updating 3 May 17, 2009 09:01 PM


All times are GMT -6. The time now is 02:13 PM.


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