• Hi there,

    With this plugin active, we get a PHP notice on every page load:

    PHP Notice:  Undefined variable: _SESSION in wp-content/plugins/custom-database-applications-by-caspio/classes/class-datapage-loader.php on line 4
    PHP Stack trace:
    PHP   1. {main}() index.php:0
    PHP   2. require() index.php:17
    PHP   3. require_once() wp-blog-header.php:13
    PHP   4. require_once() wp-load.php:37
    PHP   5. require_once() wp-config.php:136
    PHP   6. do_action() wp-settings.php:525
    PHP   7. WP_Hook->do_action() wp-includes/plugin.php:465
    PHP   8. WP_Hook->apply_filters() wp-includes/class-wp-hook.php:310
    PHP   9. DataPage_Loader::caspio_session() wp-includes/class-wp-hook.php:286

    This results in our error logs filling up quite quickly.

    Could this issue please be addressed in a future release?

    Thank you!

    James

Viewing 1 replies (of 1 total)
  • Thread Starter James Collins

    (@jamescollins)

    I think this could be resolved by making the following change to line 4 of wp-content/plugins/custom-database-applications-by-caspio/classes/class-datapage-loader.php:

    Before:

    if ( ! $_SESSION ) {

    After:

    if ( ! isset( $_SESSION ) || ! $_SESSION ) {

    Related to this, it looks like having this plugin active means that a PHP session is started for each and every visitor to any page on a website.

    For performance reasons would it be possible to only do this on pages that contain [caspio shortcodes instead?

    James

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined variable: _SESSION’ is closed to new replies.