2024/02/19 20:59:55 [error] 435#435: *77641 FastCGI sent in stderr: “PHP message: PHP Fatal error

This topic has 18 replies, 3 voices, and was last updated 9 months ago ago by Luca Rossi

  • Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 19, 2024 at 22:25

    Greetings,

    We are seeing many errors like this. Not sure what exactly they say. Also, we found in the APM report of kinsta, xstore core plugin is the slowest WordPress plugin.

    I have provided the login credentials to check further. Please do not make any changes that reflect on the live site. Credential is only to find out the issue.

    Thanks,

    2024/02/19 20:59:55 [error] 435#435: *77641 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /www/goldeneagledistributors_846/public/wp-includes/functions.php:1147
    Stack trace:
    #0 /www/goldeneagledistributors_846/public/wp-includes/functions.php(1147): strstr(Object(WP_Error), ‘#’)
    #1 /www/goldeneagledistributors_846/public/wp-includes/functions.php(1220): add_query_arg(‘view_mode’, false, Object(WP_Error))
    #2 /www/goldeneagledistributors_846/public/wp-content/themes/xstore/framework/woo.php(2649): remove_query_arg(‘view_mode’, Object(WP_Error))
    #3 /www/goldeneagledistributors_846/public/wp-includes/class-wp-hook.php(324): etheme_grid_list_switcher(”)
    #4 /www/goldeneagledistributors_846/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #5 /www/goldeneagledistributors_846/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /www/goldeneagledistributors_846/public/wp-content/themes/xstore/woocommerce/archive-product.php(90):” while reading response header from upstream, client: 47.128.29.145, server: goldeneagledistributors.com, request: “GET /product-tag/500ml/?product_tag=500ml%2C10oz&yith_wcan=1 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.1-fpm-goldeneagledistributors.sock:”, host: “goldeneagledistributors.com:19255

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    17 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2024 at 08:31

    Hello,

    Thank you for getting in touch with us.

    Please provide FTP access also.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 20, 2024 at 17:49

    Hi,

    Thanks for the response. I have provided all the information in the private content area.

    Also, this is the fatal error we are seeing more frequently.

    Thanks,

    2024/02/20 14:49:38 [error] 6867#6867: *127014 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /www/goldeneagledistributors_846/public/wp-includes/functions.php:1147

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 21, 2024 at 08:13

    Hello,

    We appreciate your prompt response.

    We regret to inform you that we are currently unable to establish a connection to the FTP server. We suspect there may be an IP restriction or another issue preventing access.
    To facilitate a prompt resolution, we kindly request that you attempt to connect to the FTP server using FileZilla on your end. This will help determine if the issue is on our side or if there might be a problem with the server settings.
    Please provide us with the correct credentials once you have verified the connection, or inform us of any necessary adjustments we should make to our setup.

    Error:        	Authentication failed.
    Error:        	Critical error: Could not connect to server

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 21, 2024 at 16:27

    Hello,

    I have successfully connected the server before sending all the details.

    I also got the error and that error was fixed by using sftp:// before the host. Here is the example “sftp://123.123.12.123”. For more please check the article I have provided.

    https://kinsta.com/knowledgebase/how-to-use-sftp/#sftp-login-with-filezilla-client

    Let me know if still there is any issue.

    Thanks,

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 21, 2024 at 16:52

    Hello,

    We appreciate your prompt response.

    Following your instructions, we have encountered an error, which is detailed in the screenshot available at the following link: https://prnt.sc/ARp-PLNFD-St.

    We suspect that the issue may be related to an IP restriction or a similar access barrier. We kindly request that you reach out to your hosting provider for further assistance in resolving this matter.

    Your cooperation in this regard is highly appreciated.

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 21, 2024 at 17:10

    Please check now.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 21, 2024 at 17:18

    Hello,

    We are pleased to inform you that we have successfully established a connection. Our team will review the situation and provide you with an update accordingly.

    Could you please specify the exact circumstances under which the errors you mentioned occur? Understanding the conditions is crucial, as the presence of an error in the logs at some point does not necessarily indicate that it is a persistent issue.

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 21, 2024 at 17:27

    Hi,

    Good to know that, and not sure about the error occurring under what circumstances, but we are seeing it more often. There are many errors in the Kinsta error log related to Xstore.

    Also, we received this fatal error three times a day continuously.

    2024/02/21 11:46:37 [error] 6867#6867: *180850 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /www/goldeneagledistributors_846/public/wp-includes/functions.php:1147

    Files is visible for topic creator and
    support staff only.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 21, 2024 at 17:34

    Hello,

    How can we get access to the Kinsta error log?

    Additionally, we have reviewed the fatal error mentioned https://prnt.sc/u2mA2GaD3A8k and have determined that it is not related to our theme. We recommend that you consider downgrading the PHP version to 8.0 as a potential solution. Should this not resolve the issue, we advise contacting WordPress support for further assistance.

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 21, 2024 at 17:44

    Hi,

    Here is the article to access the log using SFTP.

    https://kinsta.com/docs/wordpress-hosting/wordpress-troubleshooting/view-server-logs

    Also please check if you can do something for the core plugin as it is the slowest plugin as per the Kinsta report.

    Thanks,

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 22, 2024 at 08:50

    Hello, Shehzad Ghazi,

    Fixed. Please check now.

    We attempted to identify the cause of the errors but were unsuccessful. Nevertheless, we implemented some adjustments aimed at assisting customers in preventing such errors from appearing in the log while ensuring that everything continues to function correctly.

    2024-02-22T00:14:43+00:00 Critical Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, WP_Error given in /wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php:3413

    = was fixed by adding the next code -> https://prnt.sc/S1Zxuw1OFbtf

    Also, we found the next error ->

    2024/02/19 20:59:55 [error] 435#435: *77641 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /public/wp-includes/functions.php:1147

    it was fixed by adding the next code -> https://prnt.sc/4jYo0uGC1wtg

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 22, 2024 at 19:22

    Hi,

    Our site going down continuously from last night, We are in contact with our hosting provider but just want to check if it is not because of the changes you made.

    Also, can you explain what the changes are about?

    Thanks,

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 23, 2024 at 06:34

    Hello, Shehzad Ghazi,

    Upon our recent review, your website appears to be functioning smoothly, just as it was during our last correspondence. To provide you with a clear understanding of the modifications that have been implemented, we have included screenshots for your reference: https://prnt.sc/S1Zxuw1OFbtf https://prnt.sc/4jYo0uGC1wtg
    https://developer.wordpress.org/reference/functions/is_wp_error/
    Please be assured that these changes are not expected to cause any issues with the operation of your website.

    Should you have any questions or require further assistance, please do not hesitate to contact us.

    Best Regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 23, 2024 at 16:04

    Hello,

    ok thanks,

    We just recently migrated from siteground to Kinsta, on site ground the php version was 7.4 and currently, we are using 8.1 on Kinsta. There are many errors in the logs related to Xstore, kinsta support asked me to share these details with you guys.

    If you can fix those errors because there are still many.

    Thanks for your time and understanding.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 23, 2024 at 16:08

    Hello, Shehzad Ghazi,

    Thank you for getting in touch with us.

    Could you kindly provide a more detailed account of the issues you are currently facing? This will enable us to offer you the most effective assistance.

    Best Regards,
    8Theme’s Team

    Avatar: Golden Eagle
    Shehzad Ghazi
    Participant
    February 23, 2024 at 17:05

    Hi,

    Yes, there are some errors related to the xstore themes, for example, see below this is the recent log error and it has some errors in the function file, etc.

    You can check more on the logs, I have already shared the access with you guys.

    2024/02/23 15:40:36 [error] 6867#6867: *359459 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: strstr(): Argument #1 ($haystack) must be of type string, WP_Error given in /www/goldeneagledistributors_846/public/wp-includes/functions.php:1147
    Stack trace:
    #0 /www/goldeneagledistributors_846/public/wp-includes/functions.php(1147): strstr(Object(WP_Error), ‘#’)
    #1 /www/goldeneagledistributors_846/public/wp-content/plugins/woocommerce-brands/includes/widgets/class-wc-widget-brand-nav.php(386): add_query_arg(Array, Object(WP_Error))
    #2 /www/goldeneagledistributors_846/public/wp-content/plugins/woocommerce-brands/includes/widgets/class-wc-widget-brand-nav.php(120): WC_Widget_Brand_Nav->layered_nav_list(Array, ‘product_brand’)
    #3 /www/goldeneagledistributors_846/public/wp-includes/class-wp-widget.php(394): WC_Widget_Brand_Nav->widget(Array, Array)
    #4 /www/goldeneagledistributors_846/public/wp-includes/widgets.php(837): WP_Widget->display_callback(Array, Array)
    #5 /www/goldeneagledistributors_846/public/wp-content/themes/xstore/sidebar-shop.php(21)” while reading response header from upstream, client: 47.128.121.28, server: goldeneagledistributors.com, request: “GET /product-tag/opms/?product_tag=opms%2C6-5oz&yith_wcan=1 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.1-fpm-goldeneagledistributors.sock:”, host: “goldeneagledistributors.com:19255”

    Thanks!

    Avatar: Justin
    Luca Rossi
    Support staff
    February 24, 2024 at 15:41

    Dear Shehzad Ghazi,

    We hope this message finds you well.

    We have identified that the issue you are experiencing is associated with the “Brands for WooCommerce” plugin. To rectify this, we kindly request that you deactivate the aforementioned plugin. It is important to note that our XStore theme inherently includes the Brands feature, which should serve your needs effectively.

    For your convenience, please refer to the following documentation for guidance on utilizing the Brands feature within the XStore theme: https://www.8theme.com/documentation/docs/single-product-page/#Brands–e7yJX

    Should you require any further assistance or have any questions, please do not hesitate to reach out.

    Best Regards,
    The 8Theme Team

  • Viewing 18 results - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.