Site logo

[Resolved] Uncaught Error Messeage after saving the GP Premium license code

Home Forums Support [Resolved] Uncaught Error Messeage after saving the GP Premium license code

Home Forums Support Uncaught Error Messeage after saving the GP Premium license code

Viewing 15 posts - 1 through 15 (of 52 total)
  • Author
    Posts
  • #1755108
    Markus

    Hi there!

    Fresh Installed – no other Plugin active:
    WP 5.7.1.
    GP Premium 2.0.0.
    Generate Press 3.0.3

    /wp-admin/themes.php?page=generate-options

    When I put my license key in the Updates form and press Save I get the WordPress Error
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    The mail says:

    Typ E_ERROR wurde in der Zeile 489 der Datei /mnt/web521/b2/29/511318529/htdocs/public.html/wp-content/plugins/gp-premium/inc/activation.php verursacht. Fehlermeldung: Uncaught Error: Call to a member function get_error_message() on array in /mnt/web521/b2/29/511318529/htdocs/public.html/wp-content/plugins/gp-premium/inc/activation.php:489
    Stack trace:
    #0 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/class-wp-hook.php(292): generatepress_premium_process_license_key()
    #1 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #2 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #3 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-admin/admin.php(175): do_action()
    #4 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-admin/options.php(19): require_once('/mnt/web521/b2/...')
    #5 {main}
      thrown

    Any idea what to do?
    Thank you for any hint.

    PS
    I am using GP on 12 Websites, never had a problem like this, maybe a hosting problem?

    #1755772
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Strange, there is no code on line 489.

    Can you try re-installing GP Premium?

    #1756203
    Markus

    Tom,

    I re-installed the plugin, still the same message from WP, but no mail (yet).

    And you are right, line 489 is empty.

    The license field is now pre-filled.

    License Field Input

    #1756212
    Tom
    Lead Developer
    Lead Developer

    Does a message appear on the page when you click “Save”?

    #1756246
    Markus

    Yes.
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    #1756319
    Tom
    Lead Developer
    Lead Developer

    It says that directly on the page? Is it still saying it’s on line 489?

    #1756927
    Markus

    1. Question
    Yes, just a blank white screen with this message.
    2. Question
    The indication for line 489 was sent via mail to the WP admin address. Unfortunately the mail was sent only once – first try. No mail came on later attempts.

    #1757788
    Tom
    Lead Developer
    Lead Developer

    What is your error_log file saying on your server?

    I haven’t been able to reproduce this, so I’m assuming there’s something funky going on with the server.

    #1758814
    Markus

    Tom,

    I set wp_debug to true.

    Now the blank white screen says:

    Fatal error: Uncaught Error: Call to a member function get_error_message() on array in 
    /mnt/web521/b2/29/511318529/htdocs/public.html/wp-content/plugins/gp-premium/inc/activation.php:499 Stack trace: #0 
    /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/class-wp-hook.php(292): generatepress_premium_process_license_key() #1 
    /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #2 
    /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/plugin.php(484): WP_Hook->do_action() #3 
    /mnt/web521/b2/29/511318529/htdocs/public.html/wp-admin/admin.php(175): do_action() #4 
    /mnt/web521/b2/29/511318529/htdocs/public.html/wp-admin/options.php(19): require_once('/mnt/web521/b2/...') #5 {main} thrown in /mnt/web521/b2/29/511318529/htdocs/public.html/wp-content/plugins/gp-premium/inc/activation.php on line 499
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Content of debug.log

    [01-May-2021 12:48:45 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_error_message() on array in /mnt/web521/b2/29/511318529/htdocs/public.html/wp-content/plugins/gp-premium/inc/activation.php:499
    Stack trace:
    #0 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/class-wp-hook.php(292): generatepress_premium_process_license_key()
    #1 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #2 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #3 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-admin/admin.php(175): do_action()
    #4 /mnt/web521/b2/29/511318529/htdocs/public.html/wp-admin/options.php(19): require_once('/mnt/web521/b2/...')
    #5 {main}
      thrown in /mnt/web521/b2/29/511318529/htdocs/public.html/wp-content/plugins/gp-premium/inc/activation.php on line 499
    

    Does this help?

    #1759385
    Tom
    Lead Developer
    Lead Developer

    Hmm, kind of. However, it shouldn’t be returning as an array – WordPress returns it as an object by default.

    You mentioned this is only happening on one site, correct? Is the license key activated when you refresh the page?

    #1760100
    Markus

    Yes, only one site.
    No, refresh does not help.

    #1760738
    Tom
    Lead Developer
    Lead Developer

    This would need some internal debugging via sFTP, unfortunately. Feel free to provide details privately if you’d like me to get in there and see what’s going on 🙂

    #1760813
    Markus

    Tom,
    thank you.

    You find the sftp credentials under private information.

    Also, I added you as admin for this site.

    #1761090
    Tom
    Lead Developer
    Lead Developer

    Thanks!

    I’m seeing a 403 forbidden message when debugging the response.

    What’s your server IP? I can check to see if my server has blocked it – that could be causing the issue.

    It could also be your server blocking the outgoing request. Whatever it is it’s preventing wp_remote_post() from even triggering WP_Error – it’s just going straight to a 404. Might be worth checking with your host here as well.

    Let me know 🙂

    #1761235
    Markus

    Tom,

    a ping for the domains says: 81.169.145.80

    What exactly shall I ask my hosting provider?

Viewing 15 posts - 1 through 15 (of 52 total)
  • You must be logged in to reply to this topic.