[Urgent] Page Password 0.9.5 cannot be installed due to an error

Permalink Browser Info Environment
When trying to install Page Password 0.9.5 on ConcreteCMS 8.5.12, the following error occurs and it cannot be used.

An exception occurred while executing 'ALTER TABLE PagePassword CHANGE recursive `recursive` INT DEFAULT NULL': SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; for the right syntax to use near 'recursive `recursive` INT DEFAULT NULL' at line 1

Is there any way to improve it?
Thank you.

1 Attachment

Type: Ticket
Status: In Progress
dsds
View Replies:
hanicker replied on at Permalink Reply
hanicker
Hi, sorry for this problem, can you please try installing the following version?

https://drive.google.com/file/d/1B3ZJvpANBWoQ6fzuHlLa4cc0TE942UUF/vi...

Thanks in advance
Regards

Nicola
dsds replied on at Permalink Reply 1 Attachment
dsds
Thank you for your quick response.
I installed the version you provided but still the same error.
If you go back and reload the browser, it will be installed like the image, but the "Page Password" item will not enter the management screen.
Thank you very much.
hanicker replied on at Permalink Reply
hanicker
Hi, I'm trying to debug the error. You had previously installed an other version of Page Password and the upgrade caused the first error?

Can you please try editing the file "db.xml" and change
<field name="`recursive`" type="I">   
      </field>

with
<field name="recursive" type="I">   
      </field>

? The error seems related to the database version or software or some other settings of the database.
Thanks in advance
dsds replied on at Permalink Reply
dsds
I made db.xml as you said, but it doesn't improve.
Thank you.

As described below
<?xml version="1.0"?>
<schema version="0.3">
<table name="PagePassword">
<field name="cID" type="I">
<key />
<unsigned />
</field>
<field name="password ID" type="I">
<key />
<unsigned />
</field>
<field name="recursive" type="I">
</field>
<!--
//TODO: add options..
-->
</table>
<table name="Page Password Passwords">
<field name="password ID" type="I">
<key />
<autoincrement />
<unsigned />
</field>
<field name="value" type="X2">
</field>
</table>
</schema>
hanicker replied on at Permalink Reply
hanicker
Are you still receiving the error
"'ALTER TABLE PagePassword CHANGE recursive `recursive` INT DEFAULT NULL'" ?

Can you please try, using phpmyadmin, altering the PagePassword table and changing column name from "recursive" to "recurs".
Then it should be possible to use this new package where I changed every occurrence
https://drive.google.com/file/d/1Bm68jM-GHe_NPvo7x6jQKwNN3CcRRbIC/vi...

Thanks
Regards
dsds replied on at Permalink Reply
dsds
Many apologies.
After all, it cannot be installed correctly, so reinstall ConreteCMS and try again.
Which files should I install?
Is it due to an addon or theme I'm using?
Thank you for your confirmation.
hanicker replied on at Permalink Reply
hanicker
Hi, the error should be related to some specific version of the database. You should try installing the lastest zip linked. Anyway let me know in any moment if you prefer to get the purchase refunded.

Thanks
Regards

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.12
Version Installed - 8.5.12
Database Version - 20220319043123

# Database Information
Version: 10.5.13-MariaDB-log
SQL Mode:

# concrete5 Packages
Form Reform (9.0.12), Form Reform Display (9.0.1), Page password (0.9.5), Stucco (2.1.6)

# concrete5 Overrides
blocks/form/controller.php, blocks/form/edit.php, blocks/form/form_setup_html.php, blocks/form/mini_survey.php, blocks/form/view.css, blocks/form/view.php, blocks/form, mail/block_form_submission.php, mail/block_form_auto_reply.php

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.4.33

# PHP Extensions
apcu, bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 1G
post_max_size - 1G
upload_max_filesize - 1G
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Chrome/109.0.541

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.