The error "You are not allowed to call this page directly” usually appears in websites WordPress when a user tries to directly access a page or file that is not intended to be accessed directly.
For example, when you want to access from Dashboard page updates to WordPress Plugins / WordPress Themes. Although you are logged in with a user Why has the rank of administrator / admin WordPress, you cannot access the page directly
wp-admin/update-core.php which executes the script update al WordPress.
[Fixed WordPress Update Error] You are not allowed to call this page directly.
The error can occur in several scenarios:
Access files directly from the theme (theme): Some files from the theme WordPress they are not intended to be accessed directly via URL. These include the .php files in the theme folder such as header.php, footer.php or functions.php. Attempting to access these files directly may result in the error being displayed.
Direct file access from admin: WordPress has certain files in the admin panel that are not meant to be accessed directly. These include the .php files in the folder
wp-admin, Such as admin.php or edit.php. Attempting to access these files directly may result in the error.
Direct access to protected pages: If you have certain protected pages that require authentication to access, trying to directly access these pages without being authenticated may generate the error.
To fix this error, make sure to go to the pages WordPress in a fair way, using the links and buttons available within the platform. Avoid directly accessing files or pages that are not intended to be accessed this way.
In my situation, the error appeared after activating the module “NextGEN ImageFlow". So, the solution can also lie in deactivating some modules.