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 »

Warning in php code


  #1  
Old Dec 18, 2012, 09: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 05:49 PM.
  #2  
Old Dec 18, 2012, 10:15 AM
jerryc
 
367 posts · Oct 2012
Florida
Did you customize anything:
  • in your php code?
  • elsewhere?
  #3  
Old Dec 18, 2012, 05:57 PM
carpin
 
7 posts · Dec 2012
No, I have only installed plug ins.
  #4  
Old Dec 18, 2012, 06:16 PM
juggledad's Avatar
juggledad
 
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  
Old Dec 19, 2012, 08: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, 09:14 AM
juggledad's Avatar
juggledad
 
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  
Old Dec 19, 2012, 09: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, 10:34 AM
juggledad's Avatar
juggledad
 
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  
Old Dec 19, 2012, 10: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, 11:32 AM
juggledad's Avatar
juggledad
 
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  
Old Dec 19, 2012, 06:29 PM
carpin
 
7 posts · Dec 2012
theme settings
Attached Files
File Type: txt steamdok.txt (71.2 KB, 4310 views)
  #12  
Old Dec 19, 2012, 06:59 PM
juggledad's Avatar
juggledad
 
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  
Old Dec 20, 2012, 06: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 02:53 AM
Warning message ! problem drey Header configuration & styling 3 May 14, 2010 10:15 AM
WARNING: Older WP versions being attacked paulae Installing & running WordPress 1 Dec 7, 2009 01:49 AM
BUG: php warning when postmeta is empty buzink Post-Kicker, -Byline & -Footer 0 Oct 12, 2009 05: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 08:01 PM


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


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