• Resolved delafosse

    (@delafosse)


    Hi,
    Thanks for the plugin.
    However, since the last update today, it’s not possible to go back to the WordPress Console. I can rad an error :

    Fatal error: Call to undefined function wp_roles() in /homepages/37/d577620402/htdocs/XXXXX/wp-content/plugins/loco-translate/src/data/Permissions.php on line 15

    Can you help me to correct this line.
    It’s impossible to download the previous version 2.0.2 and to take the old files.

    Thanks

    https://wordpress.org/plugins/loco-translate/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Tim W

    (@timwhitlock)

    What screen are you on when you receive this error?

    Could you paste the admin url path?

    Thread Starter delafosse

    (@delafosse)

    Thanks Tim,
    When i go to http://XXXXXX/wp-admin/ i can’t access to my theme.
    I got a white page with this only line :

    Fatal error: Call to undefined function wp_roles() in /homepages/37/d577620402/htdocs/XXXXX/wp-content/plugins/loco-translate/src/data/Permissions.php on line 15

    Can you help me to modify this line ?

    Plugin Author Tim W

    (@timwhitlock)

    Don’t modify the line.

    The error means that for some reason WordPress has not included the file at wp-includes/capabilities.php This should have been included as part of the core WordPress setup.

    What version of WP are you running?

    Plugin Author Tim W

    (@timwhitlock)

    I’ve just realised that wp_roles requires WP 4.3, but I aim to support any 4.x

    I’ve added a fix for this in the development version if you’d like to try it out.

    Thread Starter delafosse

    (@delafosse)

    Finnaly,
    I use a backup and delete the new files to use the old.
    Thanks for the help.

    I keep my old version of the plugin

    Plugin Author Tim W

    (@timwhitlock)

    Thanks for the update.

    Although you haven’t verified this was a WP version issue, I’m marking as resolved because I’m confident I’ve fixed the error for the next release.

    Sorry but I just checked and the /includes/capabilities is available in my wp install.

    So the problem must be somewhere else…

    Plugin Author Tim W

    (@timwhitlock)

    The issue was that wp_roles was introduced in WP 4.3. If the function is missing you must be running something older. This is fixed in 2.0.4 – which no longer calls wp_roles

    I have (on all my sites) since yesterday wp 4.6 installed.

    Plugin Author Tim W

    (@timwhitlock)

    @ BartTheMan and you have the exact same issue as Delafosse? that wp_roles isn’t defined?

    If not then please start a new thread for your particular error.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error : impossible access to WordPress theme duet Permission.php’ is closed to new replies.