WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Kristho91
    Member
    Posted 1 year 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?

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

  2. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    This is fixed in Role Scoper 1.3.57.

  3. nepzap2
    Member
    Posted 1 year 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?

    Thanks.

  4. kevinB
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.