I'm logged off of my website when accessing some menus...

Hi there,

I have a weird problem as far as wordpress is concerned :

On one of my website (http://www.lasmala.org/), when I'm logged in as admin and try to go to some menus (medias page 2, users, etc) I'm automatically logged off and redirected to the connexion page.

Any idea of what could cause that ?

Thanks a lot in advance,

DJ

  • Imperative Ideas
    • HummingBird

    Hey DJ,

    Is it just you or does it happen on other logins, computers, etc.

    That sort of behavior is normally caused by a corrupt cookie or a bad session cache. Clear them and it should patch things up. Changing your encryption hashes in wp-content.php would have the same effect but would force everyone to do a "forgot password" on their next sign in.

  • Imperative Ideas
    • HummingBird

    Ok then. We need to get reductive. If it is a busy site, that means making a clone first.

    Turn off all of your plugins. Does the problem still exist? If not, re-activate them a few at a time until you locate the guilty party.

    We can also change your error logging so it writes to a file and see what is wrong on the php end. Replacing your error logging code with some variant on

    define('WP_DEBUG',         true);  // Turn debugging ON
      define('WP_DEBUG_DISPLAY', false); // Turn forced display OFF
      define('WP_DEBUG_LOG',     true);  // Turn logging to wp-content/debug.log ON

    Should work.

    Let's talk about what is in that file when the error is triggered.

  • DJExp
    • The Incredible Code Injector

    Ok, so I tried de-activating all plugins and setting the theme to Twenty Twelve and the problem is still occurring.

    I managed to do the debug.log stuff. Here's the content of the log after I made the problem happened again :

    [23-Sep-2013 15:49:47] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:47] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:47] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:47] PHP Notice:  add_contextual_help est <strong>déprécié</strong> depuis la version 3.3! Utilisez get_current_screen()->add_help_tab() à la place. in /var/www/envalais/smala/wp-includes/functions.php on line 2900
    [23-Sep-2013 15:49:47] PHP Notice:  Trying to get property of non-object in /var/www/envalais/smala/wp-admin/includes/template.php on line 822
    [23-Sep-2013 15:49:49] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:49] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:49] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:49] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:49:49] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443
    [23-Sep-2013 15:49:49] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:49] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:49] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:49] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:49:49] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443
    [23-Sep-2013 15:49:53] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:53] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:53] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:53] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:53] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:53] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:53] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:53] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:53] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:53] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:49:53] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443
    [23-Sep-2013 15:49:59] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:59] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:59] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:59] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:49:59] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:49:59] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:49:59] PHP Notice:  add_contextual_help est <strong>déprécié</strong> depuis la version 3.3! Utilisez get_current_screen()->add_help_tab() à la place. in /var/www/envalais/smala/wp-includes/functions.php on line 2900
    [23-Sep-2013 15:49:59] PHP Notice:  Trying to get property of non-object in /var/www/envalais/smala/wp-admin/includes/template.php on line 822
    [23-Sep-2013 15:50:08] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:50:08] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:50:08] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:50:08] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:50:08] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443
    [23-Sep-2013 15:50:09] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:50:09] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:50:09] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:50:09] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:50:09] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443
    [23-Sep-2013 15:50:13] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:50:13] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:50:13] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:50:13] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:50:13] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443
    [23-Sep-2013 15:50:21] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 175
    [23-Sep-2013 15:50:21] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-includes/post.php on line 1287
    [23-Sep-2013 15:50:21] PHP Warning:  Invalid argument supplied for foreach() in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-events/woo-events.php on line 190
    [23-Sep-2013 15:50:21] PHP Notice:  Undefined variable: slides in /var/www/envalais/smala/wp-content/themes/unsigned/includes/woo-slides/woo-slides.php on line 334
    [23-Sep-2013 15:50:21] PHP Notice:  Undefined index: filter in /var/www/envalais/smala/wp-content/plugins/social-media-widget/social-widget.php on line 443

    Thanks a lot for your help,

    DJ

  • DJExp
    • The Incredible Code Injector

    Hi Imperative Ideas,

    Thanks for your help.

    The problem was related to an Apache proxy, I wasn't able to change it but our server guy finally did it and now it's working.

    Thanks a lot to you and Ari for the great help, I'm very grateful !

    Best regards,

    DJ

  • Imperative Ideas
    • HummingBird

    Your social media widget has not been updated since April 11th. The following fix gets rid of the error it is throwing.

    On line 384 of social-widget.php, change $instance['filter'] to $instance['text']

    The rest of these are issues with your theme and they could well cause the kind of meltdown you are looking at if an administrative client makes a call to an undefined array and your session gets killed as a result. My guess is that you are running an outdated version of PHP.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.