"Sorry, you are not allowed to access this page" on Theme Options

Open
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme August 02, 2022
Login to reply
Bob Svensson commented privately
Bob Svensson
1 month ago

Hello hello,

I'm getting a pesky "Sorry, you are not allowed to access this page" error message when trying to get the the Theme Options.

My Debug log has this

Function WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /users/sven/Sites/wordpress/wp-includes/functions.php on line 5831

And I'm getting the following error from DEBUG_DISPLAY

Notice: Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /users/sven/Sites/wordpress/wp-includes/functions.php on line 5831

I'm in a local environment and tried troubleshooting by:

- Changing file permissions

- Changing from a variety of php versions (5.6, bunch of 7s and 8.0)

- Disabling all plugins

As I said, I'm in a local environment and just installed the theme on a completely fresh install of wordpress so I'm a bit at a loss. Would really appreciate a hand in figuring out what's up.

Also wanted to mention that my ISP blocks the webpage for your docs. You guys may want to check that out. Any chance to get a textfile of the docs?

Thanks in advance :)