• My website uses the Fluida theme by Cryout Creations

    For a couple of days the home page has no longer displayed all the blocks correctly. The provider errorlog reports this error:

    WARNING: [pool https://www.caistabia.it] child 345 said into stderr: “[08-Jan-2024 05:00:30 UTC] PHP Fatal error: Uncaught TypeError: Argument 3 passed to locate_block_template() must be of the type array, string given, called in /web/htdocs/www.caistabia.it/home/wp-includes/template.php on line 66 and defined in /web/htdocs/www.caistabia.it/home/wp-includes/block-template.php:36”

    I don’t understand if it’s a template or PHP problem….

    I had set PHP to version 7.4, I brought it to 8.3 without solving the problem.

    Any advice will be of great help to me, thank you all!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • @14nc310t

    The function?locate_block_template()?is expecting its third argument to be an array, but it received a string instead.

    ?It seems that the?locate_block_template()?function is being called with incorrect arguments in?template.php.


    Here is what I recommend:

    1. Check the function call: Look at the line in?template.php?where?locate_block_template()?is being called. Make sure that the third argument passed to this function is an array.

    2. Check the function definition: Look at the?locate_block_template()?function definition in?block-template.php. Make sure that it’s expecting its third argument to be an array.



    The error you’re seeing is likely due to a compatibility issue between the Fluida theme and the newer PHP or WordPress version. Here’s a quick checklist:

    1. Check Theme Compatibility: Ensure Fluida supports your WordPress and PHP versions.
    2. Update Everything: Update the theme and all plugins.
    3. Test PHP Versions: Sometimes older PHP (like 7.4) works better with certain themes.
    4. Switch Themes Temporarily: Briefly change to a default WordPress theme to see if the problem persists.
    5. Plugin Conflict Test: Deactivate plugins and reactivate them one by one to find any conflicts.
    6. Contact Theme Support: If the issue continues, reach out to Cryout Creations.
    7. Backup: Always backup your site before making changes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme not displayed correctly’ is closed to new replies.