Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Warning in php code (http://forum.bytesforall.com/showthread.php?t=19156)

carpin Dec 18, 2012 10:36 AM

Warning in php code
 
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

jerryc Dec 18, 2012 11:15 AM

Did you customize anything:
  • in your php code?
  • elsewhere?

carpin Dec 18, 2012 06:57 PM

No, I have only installed plug ins.

juggledad Dec 18, 2012 07:16 PM

So what happens if you disable all the plugins?

carpin Dec 19, 2012 09:39 AM

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-->

juggledad Dec 19, 2012 10:14 AM

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?

carpin Dec 19, 2012 10:59 AM

Thanks for helping me

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

And where can I find postformat.php?

juggledad Dec 19, 2012 11:34 AM

it's one of the virtual subtemplates in the theme options
also check single.php

carpin Dec 19, 2012 11:53 AM

No <?php bfa_image_meta(); ?> code inserted in postformat.php and single.php

juggledad Dec 19, 2012 12:32 PM

do an export of yout theme settings (via the theme option) and attach it to a reply

carpin Dec 19, 2012 07:29 PM

1 Attachment(s)
theme settings

juggledad Dec 19, 2012 07:59 PM

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.

carpin Dec 20, 2012 07:21 PM

Only one image png, no text


All times are GMT -6. The time now is 08:12 PM.

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