• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Problem upgrading from 2.12 to 2.13.3

Started by svsanchez, June 15, 2023, 07:33:45 AM  ( Read 26,938 times )

svsanchez

Hello, I am trying to upgrade one of my sites from 2.12.? to 2.13.3 but am getting this error:

Step 15 : Reload all addons database entry (no upgrade)
There was an uncatched exception
preg_match(): Argument #2 ($subject) must be of type string, bool given
in line (1216) of (/framework/functions.php):

    Gast

    it looks, that some of your used modules used a incomplete info.php, specially a missing $module_description

    go step by step in every folder under /modules and also under /templates and check every info.php. every info-file needs the yellow marked definitions




      svsanchez

      Hello, thank you for your reply. I went through each and every module an theme, and they all had those "variables" present:

      $module_directory
      $module_name
      $module_function
      $module_version
      $module_platform
      $module_author
      $module_license
      $module_description

      Is there somewhere else one of these could be missing or is there another reason why the upgrade would give me that error?

      Here is again the error I am getting:

      Step 15 : Reload all addons database entry (no upgrade)
      There was an uncatched exception
      preg_match(): Argument #2 ($subject) must be of type string, bool given
      in line (1216) of (/framework/functions.php):

        Gast

        dont forget the templates   :wink:

        Step 15 read all entries form modules, languages and templates to reload the "latest" infos to the addon-table in the database

        for this job, the upgrade-script open the folders languages, modules and templates and read from there the content
        in the language-folder, it reads only the PHP-Files like EN.php, ES.php etc
        in the other folders, it read the file info.php

        the error-message talk about the function get_variable_content()
        this function reads the entries from this files and take from there only the content
        for example: from this definition
        $module_description = 'This page type is designed for making a news page.';
        the function use only the text "This page type is designed for making a news page." and write this into the addon-table

        the error-message means, some of this definitions are empty or not avaiable, is it not a string

        be sure, that you have no ZIP-Files in the folders "languages, modules and templates", because, the script try to unzip this zip-files also

        check also your temp-Folder and delete there possible Zip's. Maybe, its a good solution, if you clear the wb-own temp-folder and delete possible files from there


          svsanchez

          Hello, yes I meant that I also checked the Templates, not the Themes sorry... I will check the Languages and make sure there are no zip files.

            svsanchez

            Hello again, I found two zip files inside some of the templates and removed them, unfortunately the upgrade failed again with the same error.


              \n\n