-
JDupuy
Here are the contents of the debug.log file when I set up the license key:
Thanks for help.
-
Interesting, I’m actually seeing nothing but success messages in the debug info there. It looks like the license is successfully activated.
When you go to “Appearance > GeneratePress”, is there a green message in the license area saying you are receiving updates?
-
JDupuy
Hi,
Yes I have a green message in the license area.
-
Ok, and if you clear it, then re-add the key? It activates ok?
If so, it means your site is having no trouble communicating with our server, so updates should be working fine.
I wonder if there’s another plugin on the site with some bad code causing some update messages not to show. Are you seeing other plugin updates?
-
JDupuy
Hi,
I cleared the key, then put it back, and I still have the message in green indicating that the site can receive updates.
I’ve deactivated all the other extensions, except for the plugin that lets you use the second API.
But still no update offered for GP Premium.
It’s a site I maintain every two weeks, and I regularly get updates for other extensions.
At the moment, all the extensions are up to date, so I can’t check that the update system is working.
However, I haven’t modified any plugins in a long time.
I propose to leave this site in this configuration (all plugins deactivated) until tomorrow to see if by then the GP Premium update is offered. Does that sound like a good idea?Thanks for help.
-
JDupuy
Hi,
I don’t know what the delay is for the release of updates, but 24 hours after deactivating all other plugins, the update for GP Premium is still not offered.
I need to reactivate the extensions and do maintenance today.
Here’s the list of installed extensions. To your knowledge, are any of them known to cause this kind of problem?BackWPup
Patchstack Security
Redirection
SecuPress Free
SEOPress
Simple Links
Super RSS Reader
WordPress Importer
WP Map Block by aBlocks
WP-OptimizeThanks for help.
-
JDupuy
Hi,
Should I replace the mu-plugin with this code?
add_filter( 'pre_http_request', function( $pre, $args, $url ) { if ( 'https://generatepress.com' === $url || 'https://generatepress.com/' === $url ) { return wp_remote_post( 'https://api.generatepress.com', array( 'timeout' => $args['timeout'], 'sslverify' => $args['sslverify'], 'body' => $args['body'], ) ); } return $pre; }, 10, 3 ); add_action( 'http_api_debug', function( $response, $context, $class, $r, $url ) { if ( 'https://generatepress.com' !== $url && 'https://api.generatepress.com' !== $url ) { return; } error_reporting( error_reporting() & ~E_NOTICE ); error_log( '------ Start GeneratePress license key debugging ------' ); error_log( '--- HTTP response or WP_Error object. ---' ); error_log( print_r( $response, true ) ); error_log( '--- HTTP transport used. ---' ); error_log( $class ); error_log( '--- HTTP request arguments. ---' ); error_log( print_r( $r, true ) ); }, 10, 5 );
by this code only:
add_filter( 'pre_http_request', function( $pre, $args, $url ) { if ( 'https://generatepress.com' === $url || 'https://generatepress.com/' === $url ) { return wp_remote_post( 'https://api.generatepress.com', array( 'timeout' => $args['timeout'], 'sslverify' => $args['sslverify'], 'body' => $args['body'], ) ); } return $pre; }, 10, 3 );
or do both work properly?
Thanks. -
One of them is only for debugging purposes (the second one), so it’s not needed long term.
I’m not aware of any plugins that prevent GP Premium from updating/finding updates.
This is very strange, indeed. I would need temporary access to the database to debug further. Are you able to set up a staging/testing site on this server so I can poke around a little?
-
JDupuy
Hi,
Yes, I can give you an access, but send me an e-mail address.
Thanks. -
You can use:
-
JDupuy
Hi,
I’ve just created an admin account for you.
This site is a clone of the production site on which I carry out tests (updates, extension or theme configurations) before making changes to the production site.
It features the same extensions (except WordPress Importer which isn’t installed on production site) and settings as the production site, the only difference being in the posts and pages.Thanks.
I am available if needed. -
Can you install the “Query Monitor” plugin on the site, please?
-
Done.
Query Monitor installed. -
I’m at a bit of a loss. I’m not seeing anything obvious that would be prevent WordPress from displaying the link to update the plugin.
What is the “Allow GP Premium updates” plugin doing? Is that only the code for the secondary API?
All of the requests are coming back successfully, but something on the local WP side is preventing the update from actually showing. Can you confirm that this install is displaying updates for other plugins?
For now, if it’s delaying you, you can manually update by installing the latest version of the plugin.
-
JDupuy
Hi,
Allow GP Premium Updates contains this code:
add_filter( 'pre_http_request', function( $pre, $args, $url ) { if ( 'https://generatepress.com' === $url || 'https://generatepress.com/' === $url ) { return wp_remote_post( 'https://api.generatepress.com', array( 'timeout' => $args['timeout'], 'sslverify' => $args['sslverify'], 'body' => $args['body'], ) ); } return $pre; }, 10, 3 ); add_action( 'http_api_debug', function( $response, $context, $class, $r, $url ) { if ( 'https://generatepress.com' !== $url && 'https://api.generatepress.com' !== $url ) { return; } error_reporting( error_reporting() & ~E_NOTICE ); error_log( '------ Start GeneratePress license key debugging ------' ); error_log( '--- HTTP response or WP_Error object. ---' ); error_log( print_r( $response, true ) ); error_log( '--- HTTP transport used. ---' ); error_log( $class ); error_log( '--- HTTP request arguments. ---' ); error_log( print_r( $r, true ) ); }, 10, 5 );
I can deactivate this if you need.
Thanks -
No, that should be ok as-is.
I’m pretty stumped here, to be honest. I’m not seeing any of the regular signs or signals that I would usually look for.
If I had FTP (file access) and database access, I may be able to debug further, but without that, I’m not sure there’s much else I can check.
- You must be logged in to reply to this topic.