Error message - Warning: Invalid argument supplied for foreach() in ecc.

resolved (13 posts) (2 voices)

  1. espom
    Member

    hi,
    sorry for my bad bad bad english...
    this error occurs:
    Warning: Invalid argument supplied for foreach() in /web/htdocs/www.aloealtroguadagno.it/home/demoaag/wp-content/themes/infocus/lib/functions/scripts.php on line 313
    my site is: http://www.aloealtroguadagno.it/demoaag/
    help me
    tank you
    marco

    Posted 4 months ago #
  2. Elliott
    Support

    Hello espom,

    I'm not seeing any error on your site, did you get this fixed?

    Go ahead and create a backup and completely delete inFocus from your theme folder before downloading / uploading a fresh copy. Also make sure that your hosting provider is using the latest versions in PHP and MySQL.

    Posted 4 months ago #
  3. espom
    Member

    hi Elliot,

    1. I completely deleted the folder inFocus from my theme folder
    2. I uploaded a fresh copy of the theme

    if you go here http://www.aloealtroguadagno.it/demoaag/chi-siamo/ you see the error message Warning: Invalid argument supplied for foreach() in /web/htdocs/www.aloealtroguadagno.it/home/demoaag/wp-content/themes/infocus/lib/functions/scripts.php on line 313

    help me

    tank you
    marco

    Posted 4 months ago #
  4. espom
    Member

    hi Elliot,

    details:

    1. in local error does not occur

    2. inside the server, if it is in a default theme error does not occur

    3. PHP Version 5.2.17

    4. MySQL Version 5.1.56

    Posted 4 months ago #
  5. espom
    Member

    sorry,

    PHP Version 5.3.8

    Posted 4 months ago #
  6. Elliott
    Support

    Try deleting your custom sidebars in Dashboard -> your theme -> Sidebars and recreating them. If that does not work then send us a private message by clicking on the "PM this user" link beneath our usernames.

    Posted 4 months ago #
  7. espom
    Member

    hi,

    1. I deleted the whole site
    2. I deleted all db
    3. I downloaded latest version wordpress
    4. I loaded InFocus
    5. I loaded all the photo with the uploader of wordpress
    6. I completely rebuilt the site online

    Shortcode "image_frame" and Shortcode "fancy_images" does not work for example: http://www.aloealtroguadagno.it/demoaag/certificato-di-qualita/standard-qualitativi/

    Posted 4 months ago #
  8. Elliott
    Support

    Your resize script is giving me a 500 Internal Server Error,

    http://www.aloealtroguadagno.it/demoaag/wp-content/themes/infocus/lib/scripts/timthumb/thumb.php

    This is usually a problem with your server so I would contact your hosting provider and let them know about this.

    Posted 4 months ago #
  9. espom
    Member

    This is the error log.
    you can serve to help me?

    [Thu Jan 19 16:34:21 2012] [error] [client 87.9.91.29] Premature end of script headers: thumb.php, referer: http://www.aloealtroguadagno.it/demoaag/certificato-di-qualita/standard-qualitativi/

    Posted 4 months ago #
  10. Elliott
    Support

    Have you contacted your hosting provider yet?

    Posted 4 months ago #
  11. espom
    Member

    After extensive research I found the solution on the wordpress forums (it) when I had lost all hope ...

    Posted 4 months ago #
  12. Elliott
    Support

    Glad you got it sorted, it would be great if you could post your solution here.

    Posted 4 months ago #
  13. espom
    Member

    need to edit the wp-config.php file by inserting these two lines:

    1.define('FS_CHMOD_FILE',0755);<br />
    2.define('FS_CHMOD_DIR',0755);

    source: http://www.wordpress-it.it/2008/12/05/utenti-aruba-linux-aggiornamento-automatico-worpdpress-27/

    Posted 4 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme