Fatal error – TOC+ Version 2309
-
Hello,
In the newest plugin version there is a change to the way of loading files.
We have a very rare scenario – we need to load wp manually in one file in the active theme directory and this results in the fatal error because of the relative path in includes/init.php – require_once ‘functions.php’; which results in duplicate loading of the functions.php file in the theme direcrory instead of loading the functions.php in the init directory in the plugin.
Could you please change it to require_once __DIR__ . ‘/functions.php’;?
Similar to what you have in the toc.php
To test it just create test.php file in the theme dir and put something like this:
<?php require_once(__DIR__ . '/../../../wp-load.php'); echo 'hello';When you try to access it in the browser it will crash.
Thanks!
The topic ‘Fatal error – TOC+ Version 2309’ is closed to new replies.