Site logo

Archived topic

Uncaught Error Messeage after saving the GP Premium license code

51 replies · Started by Markus on April 29, 2021

Viewing posts 1–15 of 52

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?

Hi there,

Strange, there is no code on line 489.

Can you try re-installing GP Premium?

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

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

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

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

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.

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.

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?

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?

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

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 :)

Tom,
thank you.

You find the sftp credentials under private information.

Also, I added you as admin for this site.

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 :)

Tom,

a ping for the domains says: 81.169.145.80

What exactly shall I ask my hosting provider?

This archived topic is closed to new replies.