error 0024, get_page_permastruct fatal error, conflict with fastest-cache ?
Welcome to QSM Support Forum. › Forums › QSM Pre-Sales › error 0024, get_page_permastruct fatal error, conflict with fastest-cache ?
Tagged: 0024, get_page_permastruct, wp-fastest-cache
- This topic has 2 replies, 2 voices, and was last updated 3 years, 11 months ago by Kriti Sharma.
-
AuthorPosts
-
May 4, 2020 at 12:12 pm #3581Pierre LabadilleParticipant
Hello,
We’re trying your plugin, it passed all of our test in staging but instantly broke all the admin side of the production (including wp-post.php and wp-ajax.php so this impact some of the front too) after deploy. Please note I’m a web developer and I’m used to work with wordpress among other.
We have a bug catching system so I can provide you some information, firstly here is the stacktrace :
`
ErrorPOST /wp-admin/admin-ajax.php
Call to a member function get_page_permastruct() on null
Linked event: 4 minutes ago ยท May 4th, 13:10:49 CESTError Call to a member function get_page_permastruct() on null
/[path_to_release]/wp-includes/link-template.php:376 _get_page_link
/[path_to_release]/wp-includes/link-template.php:338 get_page_link
/[path_to_release]/wp-includes/link-template.php:146 get_permalink
/[path_to_release]/assets/plugins/wp-fastest-cache/wpFastestCache.php:1232 WpFastestCache::deleteHomePageCache
/[path_to_release]/assets/plugins/wp-fastest-cache/wpFastestCache.php:905 WpFastestCache::on_all_status_transitions
/[path_to_release]/wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters
/[path_to_release]/wp-includes/class-wp-hook.php:311 WP_Hook::do_action
/[path_to_release]/wp-includes/plugin.php:478 do_action
/[path_to_release]/wp-includes/post.php:4667 wp_transition_post_status
/[path_to_release]/wp-includes/post.php:4054 wp_insert_post
/[path_to_release]/assets/plugins/quiz-master-next/php/classes/class-qmn-log-manager.php:128 QMN_Log_Manager::insert_log
/[path_to_release]/assets/plugins/quiz-master-next/php/classes/class-qmn-log-manager.php:104 QMN_Log_Manager::add
/[path_to_release]/assets/plugins/quiz-master-next/php/classes/class-qsm-tracking.php:93 QSM_Tracking::send_data
/[path_to_release]/assets/plugins/quiz-master-next/php/classes/class-qsm-tracking.php:69 QSM_Tracking::track_check
/[path_to_release]/wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters
/[path_to_release]/wp-includes/class-wp-hook.php:311 WP_Hook::do_action
/[path_to_release]/wp-includes/plugin.php:478 do_action
/[path_to_release]/wp-settings.php:403 require_once
/data/www/kana_prod/www/shared/wp-config.php:98 require_once
/[path_to_release]/wp-load.php:37 require_once
/[path_to_release]/wp-admin/admin-ajax.php:22 [main]
`
The plugin is up-to-date, as well as WordPress, php, and the system :
`
runtimeVersions
{
“php”: “7.3.10-1+ubuntu18.04.1+deb.sury.org+1”,
“wordpress”: “5.4.1”
}
`
Your custom Logger stored (2 312 times…) the following under the ‘qmn_log’ custom post type :
Error 0024 : Usage tracker failed due to following reason: cURL error 6: Could not resolve host: data.quizandsurveymaster.com
I’m not sure it’s a related. I don’t really understand why their is anything to track on the plugin activation anyway.. I curl this url locally in my machin and I have the same error by the way.It seems to be an incompatibility between your Log custom post type creation because the code not working and causing the fatal error on
wp-fastest-cache
side is the folowing (this is only WordPress code) :`
if($page_for_posts_id = get_option(‘page_for_posts’)){
$page_for_posts_permalink = urldecode(get_permalink($page_for_posts_id));
}
`
Are-you aware of this issue ? Are-you working on it or have-you a work around ?
May 11, 2020 at 10:00 am #3751Pierre LabadilleParticipantHello,
I tracked down the issue, it’s caused by checking the tracking_allowed option. Disabling it solve the issue.
It’s fairly easy to reproduce :
– install and activate wp-fastest-cache plugin
– install and activate quizandsurveymaster plugin
– turn ontracking_allowed
option on your plugin settingsIt’ll broke all the admin side immediatly with the
ErrorGET /wp-admin/admin.php Call to a member function get_page_permastruct() on null
Here is the stacktrace :/{RELEASE_PATH}/wp-includes/link-template.php:376_get_page_link /{RELEASE_PATH}/wp-includes/link-template.php:338get_page_link /{RELEASE_PATH}/wp-includes/link-template.php:146get_permalink /{RELEASE_PATH}/assets/plugins/wp-fastest-cache/wpFastestCache.php:1232WpFastestCache::deleteHomePageCache /{RELEASE_PATH}/assets/plugins/wp-fastest-cache/wpFastestCache.php:905WpFastestCache::on_all_status_transitions /{RELEASE_PATH}/wp-includes/class-wp-hook.php:287WP_Hook::apply_filters /{RELEASE_PATH}/wp-includes/class-wp-hook.php:311WP_Hook::do_action /{RELEASE_PATH}/wp-includes/plugin.php:478do_action /{RELEASE_PATH}/wp-includes/post.php:4667wp_transition_post_status /{RELEASE_PATH}/wp-includes/post.php:4054wp_insert_post /{RELEASE_PATH}/assets/plugins/quiz-master-next/php/classes/class-qmn-log-manager.php:128QMN_Log_Manager::insert_log /{RELEASE_PATH}/assets/plugins/quiz-master-next/php/classes/class-qmn-log-manager.php:104QMN_Log_Manager::add /{RELEASE_PATH}/assets/plugins/quiz-master-next/php/classes/class-qsm-tracking.php:93QSM_Tracking::send_data /{RELEASE_PATH}/assets/plugins/quiz-master-next/php/classes/class-qsm-tracking.php:69QSM_Tracking::track_check
Are you aware of this incompatibility ? Can you fix it ? Should I worry it would be triggered by other “features” too ?
May 12, 2020 at 2:49 pm #3837Kriti SharmaKeymasterHi Pierre,
Welcome to QSM Pro Support. I request you to please raise the support ticket at the support forum as this is a Pre-sales forum.
Kind Regards,
Kriti -
AuthorPosts
- You must be logged in to reply to this topic.