|
#1
Dec 18, 2012, 09:36 AM
|
|
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 05:49 PM.
|
#2
Dec 18, 2012, 10:15 AM
|
|
|
367 posts · Oct 2012
Florida
|
|
Did you customize anything: - in your php code?
- elsewhere?
|
#3
Dec 18, 2012, 05:57 PM
|
|
No, I have only installed plug ins.
|
#4
Dec 18, 2012, 06:16 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
Dec 19, 2012, 08: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-->
|
#6
Dec 19, 2012, 09:14 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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 09:18 AM.
|
#7
Dec 19, 2012, 09:59 AM
|
|
Thanks for helping me
wp-config define('WP_DEBUG', false);
And where can I find postformat.php?
|
#8
Dec 19, 2012, 10:34 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
Dec 19, 2012, 10:53 AM
|
|
No <?php bfa_image_meta(); ?> code inserted in postformat.php and single.php
|
#10
Dec 19, 2012, 11:32 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
Dec 19, 2012, 06:29 PM
|
|
theme settings
|
#12
Dec 19, 2012, 06:59 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
Dec 20, 2012, 06:21 PM
|
|
Only one image png, no text
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
|