WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Problem upgrading from 2.12 to 2.13.3
  • Print
Pages: [1]   Go Down

Author Topic: Problem upgrading from 2.12 to 2.13.3  (Read 22596 times)

Offline svsanchez

  • Posts: 589
Problem upgrading from 2.12 to 2.13.3
« 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):
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 609
Re: Problem upgrading from 2.12 to 2.13.3
« Reply #1 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



Logged

Offline svsanchez

  • Posts: 589
Re: Problem upgrading from 2.12 to 2.13.3
« Reply #2 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):
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 609
Re: Problem upgrading from 2.12 to 2.13.3
« Reply #3 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

Logged

Offline svsanchez

  • Posts: 589
Re: Problem upgrading from 2.12 to 2.13.3
« Reply #4 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.
Logged

Offline svsanchez

  • Posts: 589
Re: Problem upgrading from 2.12 to 2.13.3
« Reply #5 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.

Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Problem upgrading from 2.12 to 2.13.3
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2