WebsiteBaker Support (2.13.x) > Modules
MiniForm Undefined constant "MYSQL_ASSOC"
(1/1)
Topiax:
Hi,
I installed the MiniForm WebsiteBaker Module v 0.15.1 but it will not work in my site. Trying to add it on the page will result this error message:
--- Quote ---There was an uncatched exception
Undefined constant "MYSQL_ASSOC"
in line (239) of (/modules/miniform/functions.php):
--- End quote ---
About my Website Baker and web server
--- Quote ---Webserver
Webserver Software: Linux cpanel08.whcweb.fi 3.10.0-962.3.2.lve1.5.61.el7.x86_64 #1 SMP Wed Aug 18 07:50:15 UTC 2021 x86_64
PHP-Erweiterung: mysqli Dokumentation curl Dokumentation mbstring Dokumentation
PHP-Version: 8.1.1
WebsiteBaker-Version: 2.13.0 -r63
--- End quote ---
I have been using the same module in an other site of mine, and it works the quite ok.
Here it works ok:
https://sironta.fi/pages/govfi-fi.php
--- Quote ---Webserver Software: Linux panel02.planeettawe b.fi 3.10.0-962.3.2.lve1.5.61.el7.x86_64 #1 SMP Wed Aug 18 07:50:15 UTC 2021 x86_64
PHP-Erweiterung: mysqli curl mbstring
PHP-Version: 7.4.27
WebsiteBaker-Version: 2.13.0 RC1-r1
--- End quote ---
Any ideas where the fault might be? And how to fix it, please?
dbs:
Hi, you can fix it for yourself with the attached file functions.txt (rename it to functions.php) and upload it to the miniform module folder.
I think the author of the module will provide a newer version in next time.
Changes: 2 places with MYSQLI_ASSOC and the commenting of the get_magic_quotes_gp c part.
Topiax:
--- Quote from: dbs on December 26, 2021, 03:16:36 PM ---Hi, you can fix it for yourself with the attached file functions.txt (rename it to functions.php) and upload it to the miniform module folder.
I think the author of the module will provide a newer version in next time.
Changes: 2 places with MYSQLI_ASSOC and the commenting of the get_magic_quotes_gp c part.
--- End quote ---
Thanks dbs, this really helped, partly.
Now an other error message appears:
--- Quote ---There was an uncatched exception
Call to undefined function get_magic_quotes_gp c()
in line (46) of (/modules/miniform/modify_template.php):
--- End quote ---
How to solve this, please!
dbs:
Go to the file /modules/miniform/modify_template.php
Replace line 46 and follows
--- Code: --- if (get_magic_quotes_gpc()) {
$data = stripslashes($_POST['template_data']);
}
else {
$data = $_POST['template_data'];
}
--- End code ---
with this one
--- Code: --- $data = $_POST['template_data'];
--- End code ---
Topiax:
Thanks dbs! I will try this! :)
Navigation
[0] Message Index
Go to full version