WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: svsanchez on June 15, 2023, 07:33:45 AM

Title: Problem upgrading from 2.12 to 2.13.3
Post by: svsanchez on June 15, 2023, 07:33:45 AM
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):
Title: Re: Problem upgrading from 2.12 to 2.13.3
Post by: sternchen8875 on June 15, 2023, 10:21:41 AM
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

(https://i.gyazo.com/790c1ec413ce0bbed69fcede71aad9d5.png)

Title: Re: Problem upgrading from 2.12 to 2.13.3
Post by: svsanchez on June 15, 2023, 07:26:03 PM
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):
Title: Re: Problem upgrading from 2.12 to 2.13.3
Post by: sternchen8875 on June 15, 2023, 08:13:49 PM
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_conten t()
this function reads the entries from this files and take from there only the content
for example: from this definition
Code: [Select]
$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

Title: Re: Problem upgrading from 2.12 to 2.13.3
Post by: svsanchez on June 15, 2023, 08:45:44 PM
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.
Title: Re: Problem upgrading from 2.12 to 2.13.3
Post by: svsanchez on June 16, 2023, 10:11:32 AM
Hello again, I found two zip files inside some of the templates and removed them, unfortunately the upgrade failed again with the same error.