• Resolved mounirghorbali60

    (@mounirghorbali60)


    تفاصيل الخطأ
    =======================
    حدث خطأ من نوع E_ERROR بسبب السطر 548 في الملف /home3/radarone/public_html/wp-content/plugins/amp/src/Admin/SiteHealth.php. رسالة الخطأ: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home3/radarone/public_html/wp-content/plugins/amp/src/Admin/SiteHealth.php:548
    Stack trace:
    #0 /home3/radarone/public_html/wp-content/plugins/amp/src/Admin/SiteHealth.php(548): preg_match(‘/max-age=[1-9]/’, Array)
    #1 /home3/radarone/public_html/wp-content/plugins/amp/src/Admin/SiteHealth.php(634): AmpProject\AmpWP\Admin\SiteHealth::AmpProject\AmpWP\Admin\{closure}(Array)
    #2 /home3/radarone/public_html/wp-content/plugins/amp/src/Admin/SiteHealth.php(491): AmpProject\AmpWP\Admin\SiteHealth->check_for_page_caching()
    #3 /home3/radarone/public_html/wp-content/plugins/amp/src/Admin/SiteHealth.php(356): AmpProject\AmpWP\Admin\SiteHealth->get_page_cache_detail()
    #4 /home3/radarone/public_html/wp-admin/includes/class-wp-site-health.php(192): AmpProject\AmpWP\Admin\SiteHealth->page_cache()
    #5 /home3/radarone/public_html/wp-admin/includes/class-wp-site-health.php(2781): WP_Site_Health->perform_test(Array)
    #6 /home3/radarone/public_html/wp-includes/class-wp-hook.php(307): WP_Site_Health->wp_cron_scheduled_check()
    #7 /home3/radarone/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #8 /home3/radarone/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #9 /home3/radarone/public_html/wp-cron.php(138): do_action_ref_array(‘wp_site_health_…’, Array)
    #10 {main}
    thrown

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Milind More

    (@milindmore22)

    @mounirghorbali60

    Thank you for reporting, the issue is already reported and will be fixed in upcoming AMP plugin version 2.2.2

    Github issue: 6937

    Github PR : 6938

    Sorry for the inconvenience

    Plugin Author Weston Ruter

    (@westonruter)

    In the meantime, you can use the latest 2.2.x production build while waiting for v2.2.2 to be released.

    Thread Starter mounirghorbali60

    (@mounirghorbali60)

    The AMP plugin performs at its best when page caching is enabled. This is because the additional optimizations performed require additional server processing time, and page caching ensures that responses are served quickly.

    Page caching is detected by looking for an active page caching plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers: cache-control, expires, age, last-modified, etag, x-cache, x-proxy-cache, cf-cache-status, x-kinsta-cache, x-cache-enabled, x-cache-disabled, cf-apo-via, x-srcache-store-status, x-srcache-fetch-status, cf-edge-cache.

    Median server response time was 1٬047 milliseconds. It should be less than 600 milliseconds.
    There were 4 client caching response headers detected: cache-control, expires, last-modified, cf-cache-status.
    A page caching plugin was detected.

    Thread Starter mounirghorbali60

    (@mounirghorbali60)

    
    ### wp-core ###
    
    version: 5.9.1
    site_language: ar
    user_language: ar
    timezone: +00:00
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home3/radarone/public_html
    wordpress_size: 52.71 ميغابايت (55265476 bytes)
    uploads_path: /home3/radarone/public_html/wp-content/uploads
    uploads_size: 0.00 بايت (0 bytes)
    themes_path: /home3/radarone/public_html/wp-content/themes
    themes_size: 18.10 ميغابايت (18982787 bytes)
    plugins_path: /home3/radarone/public_html/wp-content/plugins
    plugins_size: 56.23 ميغابايت (58966490 bytes)
    database_size: 18.86 ميغابايت (19775488 bytes)
    total_size: 145.90 ميغابايت (152990241 bytes)
    
    ### wp-dropins (3) ###
    
    advanced-cache.php: true
    db-error.php: true
    maintenance.php: true
    
    ### wp-active-theme ###
    
    name: Jannah (jannah)
    version: 5.4.10
    author: ‏TieLabs
    author_website: https://tielabs.com/
    parent_theme: none
    theme_features: core-block-patterns, widgets-block-editor, TieLabs_Instagram_Feed, automatic-feed-links, title-tag, html5, post-thumbnails, Arqam_Lite, wp-block-styles, align-wide, editor-style, menus, widgets
    theme_path: /home3/radarone/public_html/wp-content/themes/jannah
    auto_update: مُعطّل
    
    ### wp-themes-inactive (1) ###
    
    Twenty Twenty-Two: version: 1.1, author: the WordPress team, التحديثات التلقائية مفعَّلة
    
    ### wp-mu-plugins (2) ###
    
    Endurance Page Cache: version: 2.2, author: Mike Hansen
    SSO: version: 0.3, author: Garth Mortensen, Mike Hansen
    
    ### wp-plugins-active (15) ###
    
    AMP: version: 2.2.2-alpha-20220307T190849Z-620933e, author: AMP Project Contributors, التحديثات التلقائية مفعَّلة
    Creative Mail by Constant Contact: version: 1.5.0, author: Constant Contact, التحديثات التلقائية مفعَّلة
    Disable Comments: version: 2.3.3, author: WPDeveloper, التحديثات التلقائية معطّلة
    Jannah - Extensions: version: 1.0.13, author: TieLabs, التحديثات التلقائية معطّلة
    Jannah Autoload Posts: version: 1.1.4, author: TieLabs, التحديثات التلقائية معطّلة
    Jannah Speed Optimization: version: 1.1.0, author: TieLabs, التحديثات التلقائية معطّلة
    Jannah Switcher: version: 1.0.4, author: TieLabs, التحديثات التلقائية معطّلة
    Jetpack: version: 10.7, author: Automattic, التحديثات التلقائية مفعَّلة
    QuadLayers TikTok Feed: version: 1.4.1, author: QuadLayers, التحديثات التلقائية معطّلة
    Really Simple SSL: version: 5.2.3, author: Really Simple Plugins, التحديثات التلقائية معطّلة
    Social Counters - Arqam Lite: version: 1.0.9, author: TieLabs, التحديثات التلقائية معطّلة
    Taqyeem: version: 2.6.5, author: TieLabs, التحديثات التلقائية معطّلة
    TieLabs Instagram Feed: version: 1.0.3, author: TieLabs, التحديثات التلقائية معطّلة
    WP Super Cache: version: 1.7.7, author: Automattic, التحديثات التلقائية معطّلة
    Yoast SEO: version: 18.3, author: Team Yoast, التحديثات التلقائية مفعَّلة
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1690
    imagemagick_version: ImageMagick 6.9.10-68 Q16 x86_64 2021-10-14 https://imagemagick.org
    imagick_version: 3.5.0
    file_uploads: File uploads is turned off
    post_max_size: 516M
    upload_max_filesize: 512M
    max_effective_size: 512 ميغابايت
    max_file_uploads: 20
    imagick_limits: 
    	imagick::RESOURCETYPE_AREA: 85 جيجابايت
    	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    	imagick::RESOURCETYPE_FILE: 12288
    	imagick::RESOURCETYPE_MAP: 48 ميغابايت
    	imagick::RESOURCETYPE_MEMORY: 48 ميغابايت
    	imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.25
    
    ### wp-server ###
    
    server_architecture: Linux 4.19.150-76.ELK.el7.x86_64 x86_64
    httpd_software: Apache
    php_version: 8.0.16 64bit
    php_sapi: cgi-fcgi
    max_input_variables: 1000
    time_limit: 30
    memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 512M
    php_post_max_size: 516M
    curl_version: 7.81.0 OpenSSL/1.1.1m
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.23-23
    client_version: mysqlnd 8.0.16
    max_allowed_packet: 268435456
    max_connections: 150
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home3/radarone/public_html/wp-content
    WP_PLUGIN_DIR: /home3/radarone/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: غير محدد
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    ### jetpack ###
    
    site_id: 202707968
    ssl_cert: No
    time_diff: undefined
    version_option: 10.7:1646166232
    old_version: 10.6:1644524174
    public: Public
    master_user: لم يتم تعيين أي مستخدم رئيسي.
    current_user: #1 mounirghorbali60
    tokens_set: Blog 
    blog_token: DEXzsxR(Hs%oJYYoiiJJAcZy#xTUGhJf
    user_token: Not set.
    version: 10.7
    jp_plugin_dir: /home3/radarone/public_html/wp-content/plugins/jetpack/
    plan: free
    protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
    full_sync: {"started":"Thu, 10 Feb 2022 20:16:26 +0000","finished":"Thu, 10 Feb 2022 20:16:36 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":"1","sent":1,"finished":true,"last_sent":"1"},"network_options":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[1],"network_options":true}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: undefined
    full_sync_lag: 0 seconds
    idc_urls: {"home":"https:\/\/radar1270.com","siteurl":"https:\/\/radar1270.com","WP_HOME":"","WP_SITEURL":""}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass.
    
    ### amp_wp ###
    
    amp_slug_query_var: amp
    amp_slug_defined_late: false
    amp_mode_enabled: reader
    amp_reader_theme: legacy
    amp_templates_enabled: post, page
    amp_serve_all_templates: This option does not apply to Reader mode.
    amp_css_transient_caching_disabled: false
    amp_css_transient_caching_threshold: 5000 transients per day
    amp_css_transient_caching_sampling_range: 14 days
    amp_css_transient_caching_transient_count: 92
    amp_css_transient_caching_time_series: 
    	20220222: 84
    	20220223: 92
    	20220224: 92
    	20220225: 92
    	20220226: 92
    	20220227: 92
    	20220228: 92
    	20220301: 92
    	20220302: 92
    	20220303: 92
    	20220304: 92
    	20220305: 92
    	20220306: 92
    	20220307: 92
    amp_libxml_version: 2.9.7
    
    
    Plugin Support Milind More

    (@milindmore22)

    Hello @mounirghorbali60

    We will recommend using Object caching and page caching, to improve your sites performance

    You can also check your site on https://amp.dev/page-experience/ and implement the suggestions. (OR ask your developer to implement those suggestions)

    Also Please check our articles for Page caching and Object Caching also try to implement the same, you can contact your hosting provider to learn about Object caching mechanism available for your site.

    Hope this is helpful!

    Plugin Author Weston Ruter

    (@westonruter)

    Also, based on this:

    Median server response time was 1٬047 milliseconds. It should be less than 600 milliseconds.
    There were 4 client caching response headers detected: cache-control, expires, last-modified, cf-cache-status.
    A page caching plugin was detected.

    It seems the issue is that even with page caching present, the response time is too slow. So that’s something to investigate further on the site. It may be that the page caching isn’t working properly. Nevertheless, I just checked your site and it shows a 27ms TTFB which is excellent. So maybe the issue has been fixed?

    Plugin Support Milind More

    (@milindmore22)

    Hello @mounirghorbali60

    We just released AMP plugin version 2.2.2 which fixes the error you encountered, please update AMP plugin and let us know if that resolves your issue.

    Plugin Support Milind More

    (@milindmore22)

    @mounirghorbali60
    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘AMP page caching detected’ is closed to new replies.