Role Scoper
[resolved] Role Scoper: PHP warning on page (4 posts)

  1. Kristho91
    Posted 3 years ago #

    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?


  2. Kevin Behrens
    Plugin Author

    Posted 3 years ago #

    This is fixed in Role Scoper 1.3.57.

  3. nepzap2
    Posted 3 years ago #

    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?


  4. Kevin Behrens
    Plugin Author

    Posted 3 years ago #

    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/' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Role Scoper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.