Skip to content Skip to main navigation Skip to footer

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 ?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3581
    Pierre LabadillePierre Labadille
    Participant

    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 CEST

    Error 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 ?

    #3751
    Pierre LabadillePierre Labadille
    Participant

    Hello,

    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 on tracking_allowed option on your plugin settings

    It’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 ?

    #3837
    Kriti SharmaKriti Sharma
    Keymaster

    Hi 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

    #6034
    Meeloun EducationMeeloun Education
    Participant

    客户支持是衡量留学生论文代写 http://www.pnstudy.com 机构的重要标准。优质的客户支持能够提高客户满意度,增强客户对机构的信任感。不同机构在客户支持方面的差异主要体现在响应速度、沟通渠道和服务态度等方面。一些优秀的代写机构提供24/7全天候客户服务,通过电话、邮件、在线聊天等多种渠道,及时响应客户的需求和疑问。此外,这些机构的客户服务人员通常经过专业培训,能够提供耐心、细致和专业的服务,帮助客户解决问题,提供建议和指导。然而,一些低质量的代写机构在客户支持方面表现较差,可能响应速度慢,服务态度冷漠,甚至无法及时解决客户的问题。因此,学生在选择代写机构时,应重视客户支持的质量,选择那些能够提供高效、友好和专业客户服务的机构。

    #6098
    Tero TeroTero Tero
    Participant

    Great content! Very engaging and informative post. Solar

    #6198
    fortune richesfortune riches
    Participant

    Five Nights at Freddy’s (FNAF) – The appeal of a complex and engaging story.

    #7120
    yydaixie yydaixieyydaixie yydaixie
    Participant

    对于非英语母语的留学生来说,语言障碍是完成Essay的最大挑战之一。即使他们的专业知识十分扎实,但在表达观点时可能会因为语言不通而导致Essay质量不佳。essay代写服务由母语为英语的专家撰写,确保文章的语言流畅、表达准确,帮助留学生克服语言障碍。

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