wysiwyg 20 cmsadmin error

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
dodgerz
 
 
Posts: 1
Joined: Wed Mar 11, 2026 6:34 pm

wysiwyg 20 cmsadmin error

Post by dodgerz »

March 11 2026
-Initial added the standard cmsadmin control to a php page.
-published.
-Trying to login to the php page causes an error log similar to the previous noted issues.
-The script tries to add columns already existing.
-Issue seems to be here: (commenting out this section lets the cmsadmin at least display on the page).
$columns = array(
"title VARCHAR(100)",
"description VARCHAR(255)",
"keywords VARCHAR(255)",
"seo_friendly_url VARCHAR(100)",
"parent_id INT DEFAULT NULL",
"search_index TINYINT(1) NOT NULL DEFAULT 1"
);

foreach ($columns as $colDef)
{
$sql = "ALTER TABLE `CMS_PAGES` ADD COLUMN $colDef";
if (!mysqli_query($db, $sql))
{
}
}
User avatar
Pablo
 
Posts: 24467
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: wysiwyg 20 cmsadmin error

Post by Pablo »

if the columns already exist then the query should silently fail.
There is no error generated by the script.

I have recent update this in the software and it work for me.
What error do you see?
luishmpaulo
 
 
Posts: 147
Joined: Wed Jan 11, 2012 8:49 pm
Location: Brazil
Contact:

Re: wysiwyg 21 cmsadmin error

Post by luishmpaulo »

Same problem (I think)...

[23-Mar-2026 12:48:57 America/Sao_Paulo] PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate column name 'title' in /mnt/DADOS/sites-dominio/www.ophicina.net.br/public_html/teste/cmsadmin.php:421
Stack trace:
#0 /mnt/DADOS/sites-dominio/www.ophicina.net.br/public_html/teste/cmsadmin.php(421): mysqli_query()
#1 {main}
thrown in /mnt/DADOS/sites-dominio/www.ophicina.net.br/public_html/teste/cmsadmin.php on line 421
User avatar
Pablo
 
Posts: 24467
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: wysiwyg 20 cmsadmin error

Post by Pablo »

This is not the same issue, because the previous reported issue has already been solved.
So, if you have the latest update then that should not be the problem.

If you need help with this then I need to see the configuration. I need some context to know where the error is related to.
Post Reply