Support » Plugin: Simple Page Tester » Fatal error: Uncaught Error

  • Hi guys
    I just bought Simple Page Tester premium, but I’m experiencing a “Fatal Error”

    As I understand I should use both shortcodes on the same page, then SPT will think to split according to the % I decided
    This is my test then >

    But when I publish the page I get “Fatal Error” message

    Can you help me to understand what’s wrong?
    (my WordPress version is  4.9.15)


    Here below the Fatal Error full trascription

    Fatal error: Uncaught Error: Call to a member function getData() on null in /home/learnnew/public_html/wp-content/plugins/simple-page-tester-premium/shortcode-split-test.php:304 Stack trace: #0 /home/learnnew/public_html/wp-includes/shortcodes.php(319): sptShortcodeSplitTest(Array, ‘Your master con…’, ‘spt_split_test’) #1 [internal function]: do_shortcode_tag(Array) #2 /home/learnnew/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(spt_sp…’, ‘do_shortcode_ta…’, ‘[spt_split_test…’) #3 /home/learnnew/public_html/wp-content/plugins/really-simple-facebook-twitter-share-buttons/really-simple-facebook-twitter-share-buttons.php(299): do_shortcode(‘[spt_split_test…’) #4 /home/learnnew/public_html/wp-content/plugins/really-simple-facebook-twitter-share-buttons/really-simple-facebook-twitter-share-buttons.php(239): really_simple_share(‘[spt_split_test…’, ‘the_content’) #5 /home/learnnew/public_html/wp-includes/class-wp-hook.php(286): really_simple_share_content(‘[spt_split_test…’) #6 /hom in /home/learnnew/public_html/wp-content/plugins/simple-page-tester-premium/shortcode-split-test.php on line 304

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is there a possibility to get a reply?

    Hi @piratazzurro,

    I’m sorry to hear that you’re having trouble there.

    Could you please try the following workaround to see if the issue will be fixed?

    On your Simple Page Tester folder please check the SPTSessionHandler.php on line 115, please remove the !is_admin() && on this line of code.

    if (!is_admin() && !isset($sptSession)) {
    $sptSession = new SPTSessionHandler();

    If you also have the premium plugin, you’ll need to edit the line 247 of simplepagetester-premium.php, you’ll see that the line of code is:

    if (!isset($id) || empty($id) || is_admin())

    you can replace it with

    if (!isset($id) || empty($id) || is_null($sptSession))

    Please make sure that you have a backup of your site before you proceed!

    I hope this helps.

    • This reply was modified 4 months, 1 week ago by Ray Abella.
    • This reply was modified 4 months, 1 week ago by Yui.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.