CMS require update to php 8.5+

Issues related to the CMS tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/cms_tools.html
A lot of information about the Content Manager System can be found in the help/manual. Please read this first before posting any questions! Also check out the demo template that is include with the software.

CMS trouble shooting / FAQ:
viewtopic.php?f=10&t=43245
Post Reply
User avatar
Dragos
 
 
Posts: 242
Joined: Tue Sep 04, 2018 7:08 am

CMS require update to php 8.5+

Post by Dragos »

In cms-admin.php page i have this error:
Warning: Undefined array key "publish_at" in D:\wamp64\www\....\cmsadmin.php on line 1047
Warning: Undefined array key "unpublish_at" in D:\wamp64\www\....\cmsadmin.php on line 1049
In cmsadmin.php at the two positions I have:
1047 - $publish_at_value = $data['publish_at'];
1049 - $unpublish_at_value = $data['unpublish_at'];

To solve the problem, it is necessary to permanently modify the page script:
1047 - $publish_at = $_POST['publish_at'] ?? null;
1049 - $unpublish_at = $_POST['unpublish_at'] ?? null;

, which is not possible for the WWB user because with each republishing of the site it returns to the initial values. I know that I can use fcgid_module in wampserver, but it is preferable without it, considering the new version of wwb(21). Thank you.
Use Win11/64bit, wwb21 . Have wamp64 server on windows 11/64bit with last mysql 9.7.1, php 8.5.8, phpmyadmin 5.2.3, mariadb 12.3.2
User avatar
Pablo
 
Posts: 24781
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: CMS require update to php 8.5+

Post by Pablo »

The code you have added makes is not correct in this context. The error is unrelated to php 8.5. It means that the fields do not exists.
You will need to update the structure of the CMS database to make sure these two field exists.
User avatar
Dragos
 
 
Posts: 242
Joined: Tue Sep 04, 2018 7:08 am

Re: CMS require update to php 8.5+

Post by Dragos »

Ok ...And how can i solve this:
Warning: Undefined array key "publish_at" in D:\wamp64\www\workpage\cmsadmin.php on line 1047
Warning: Undefined array key "unpublish_at" in D:\wamp64\www\workpage\cmsadmin.php on line 1049 ? Because the script is automatically generated...Two tables must be added manually to the cms db (publish_at and unpublish_at)
Use Win11/64bit, wwb21 . Have wamp64 server on windows 11/64bit with last mysql 9.7.1, php 8.5.8, phpmyadmin 5.2.3, mariadb 12.3.2
User avatar
Pablo
 
Posts: 24781
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: CMS require update to php 8.5+

Post by Pablo »

You will need to add the fields
publish_at
unpublish_at
to the CMS database.

The SQL statement to create the table is documented in the help and on the website.
https://www.wysiwygwebbuilder.com/cms_database.html
User avatar
AliGW
 
 
Posts: 713
Joined: Thu Dec 19, 2024 3:41 pm

Re: CMS require update to php 8.5+

Post by AliGW »

If you are able to log in via your host using phpMyAdmin, you should be able to add the required columns to your database without using SQL
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
Post Reply