I have a bug on my store in PHP 8.2 which is displayed on live

This topic has 6 replies, 3 voices, and was last updated 6 months ago ago by Andrew Mitchell

  • Avatar: MOULAY Driss
    MOULAY Driss
    Participant
    May 14, 2024 at 18:24

    when passing to PHP 8.2, I am face with this error:” Une erreur de type E_ERROR a été causée dans la ligne 160 du fichier wp-content/themes/xstore/framework/system-requirements.php. Message d’erreur : Uncaught ValueError: Unknown format specifier ” ” in /wp-content/themes/xstore/framework/system-requirements.php:160 “, so I had to comment my the line 160, in order for my website to function again, do you have any clue what’s causing the error ?

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 15, 2024 at 10:49

    Hello,

    Thank you for reaching out to us and bringing this issue to our attention. We apologize for any inconvenience caused by the error you encountered after updating to PHP 8.2.

    Based on the information you provided, it appears that the error is related to a formatting issue in the system-requirements.php file of the XStore theme. The error message indicates a problem with an unknown format specifier in a string formatting operation, which is likely due to changes in PHP 8.2 that affect how strings are handled.

    To assist you further, we would recommend the following steps:
    1. Ensure that your theme and all associated plugins are updated to their latest versions, as this can often resolve compatibility issues with newer versions of PHP.
    2. In case you have Loco translate plugin active you can have incorrect translations for such string “WP File System: Requirement – %1s — System – %2s”. Please, make sure there is correct translation for it.
    3. In case you will still see error, please, provide us correct WP-Admin + FTP access for we could check the issue and implement a fix on your web-site.

    In the meantime, if you have any further questions or need additional assistance, please do not hesitate to contact us.

    Best Regards,
    Jack Richardson
    8Theme’s Team

    Avatar: MOULAY Driss
    MOULAY Driss
    Participant
    May 15, 2024 at 15:02

    Hello,

    I tested all the steps, and none of them seems to help.
    Access are in private.

    Best Regards,
    Moulay Driss.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 16, 2024 at 07:22

    Dear @MOULAY Driss,

    I hope this message finds you well. We have previously provided detailed steps to reproduce certain issues, but it appears that some steps may have been overlooked, including a critical one concerning a translation error. As indicated in the screenshot provided https://prnt.sc/jheQuuSaeGIO, there was a mistake in setting specific characters for replacement. The correct format should be %1s, but it was translated as %1, which omits the necessary parameter for replacement.

    Furthermore, it is important to note that this was not the only instance of translation errors. Additional issues were found in several other strings, as evidenced by the screenshots linked below:
    – [Screenshot 1](https://prnt.sc/Fzgnw0srYcNF)
    – [Screenshot 2](https://prnt.sc/LTmWAYE4J8ZC)
    – [Screenshot 3](https://prnt.sc/zqCMdj6mSOdr), etc.

    We have taken the initiative to correct all the erroneous translation strings and have uncommented the relevant code in the system-requirements.php file. As a result, you should no longer see any errors displayed in your backend.

    Please ensure to allocate sufficient time for reviewing translations in the future to prevent similar issues from occurring.

    Thank you for your attention to this matter. Should you have any questions or require further assistance, please do not hesitate to contact us.

    Best Regards,

    Jack Richardson
    8Theme’s Team

    Avatar: MOULAY Driss
    MOULAY Driss
    Participant
    May 16, 2024 at 12:38

    Thank you for resolving the translation issue !

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    May 16, 2024 at 12:38

    Dear MOULAY Driss,

    We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.

    Click here to rate now: https://themeforest.net/downloads

    Thank you sincerely for your ongoing support!

    Best Regards,
    The 8Theme Team

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

The issue related to '‘I have a bug on my store in PHP 8.2 which is displayed on live’' has been successfully resolved, and the topic is now closed for further responses

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.