WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Role Scoper: PHP warning on page

[Resolved] Role Scoper: PHP warning on page

  • Kristho91

    @kristho91

    After I installed Role Scoper I got this error on my page:

    Warning: array_keys() expects parameter 1 to be array, object given in /var/www/enhedslisten-kolding.dk/public_html/wp-content/plugins/role-scoper/terms-interceptor_rs.php on line 58

    Warning: Invalid argument supplied for foreach() in /var/www/enhedslisten-kolding.dk/public_html/wp-content/plugins/role-scoper/terms-interceptor_rs.php on line 58

    But, for some reason, it goes away when I’m logged in as admin. What can I do to fix this?

    http://wordpress.org/extend/plugins/role-scoper/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Behrens

    @kevinb

    This is fixed in Role Scoper 1.3.57.

    Hello KevinB

    I keep getting an error message on top of the website that I am running on wordpress.

    Warning: filemtime() [function.filemtime]: stat failed for /home/content/31/8260231/html/wp-content/cache/rs/1e43117d4b49b83aee11ed6518698c68/all_terms/670584ed5ecc006abe4e84e14c3329a8.php in /home/content/31/8260231/html/wp-content/plugins/role-scoper/hardway/cache-persistent.php on line 455

    Can you tell me what’s happening?

    Thanks.

    Plugin Author Kevin Behrens

    @kevinb

    Apparently your server does not support relative paths. If that support cannot be added, you have two options:

    (a) disable Roles > Options > Features > Internal Cache

    – or –

    (b) determine the absolute path to your wp-content folder. Then add this to wp-config.php, before the “stop editing” line:


    define( 'CACHE_PATH', 'your/absolute/path/to/wp-content/cache/' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Role Scoper: PHP warning on page’ is closed to new replies.