WebsiteBaker Support (2.13.x) > Modules
Polls
dbs:
Hi, is there a working Polls module somewhere?
Version 1.2. with WB r185 and PHP 8.0 shows me in backend:
--- Code: ---There was an uncatched exception
call of invalid command [Modify] for [modules/polls] failed!
in line (231) of (/modules/SimpleCommandDispatcher.inc.php):
--- End code ---
What can i do in this case?
sternchen8875:
if we talk from the same version, the filename-format inside of the cmd-folder is not longer allowed in the newer SimpleCommandDispat cher.php.
You can try to rename the files in the cmd-folder of this module from
cmdModify.inc to Modify.inc.php
cmdSave.inc to Save.inc.php
cmdUninstall.inc to Uninstall.inc.php
cmdUpgrade.inc to Upgrade.inc.php
cmdView.inc to View.inc.php
this will fix the error from your post, but maybe, it need a little bit more, but step by step
if you dont have the version with filenames like my list in the top inside of the cmd-folder, pls add a module-zip in the next answer
dbs:
Thank you, this helps in first tests (Y)
+
--- Code: ---use vendor\phplib\Template;
--- End code ---
in View & Modify.
sternchen8875:
(Y)
dbs:
Hm, works on a test site. My created install zip of the module is not installable on the target site (r166, PHP 8.0).
--- Code: ---There was an uncatched exception
database::escapeString(): Argument #1 ($unescaped_string) must be of type string, bool given, called in /var/www/vhosts/johannes-rheine.de/httpdocs/framework/functions.php on line 1068
in line (257) of (/framework/class.database.php):
--- End code ---
Maybe you can have a look, module attached.
Navigation
[0] Message Index
[#] Next page
Go to full version