Theme installation creates driverExeption
Permalink Browser Info Environment
When i try to install the theme i get the error message below.
What should I do to try and debug this ?
- Thanks in advance
What should I do to try and debug this ?
- Thanks in advance
Doctrine\DBAL\Exception\DriverException thrown with message "An exception occurred while executing 'INSERT INTO btCoreConversation (bID, cnvID, enablePosting, paginate, itemsPerPage, displayMode, orderBy, enableOrdering, enableCommentRating, enableTopCommentReviews, displaySocialLinks, reviewAggregateAttributeKey, displayPostingForm, addMessageLabel, dateFormat, customDateFormat) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [183, "5", "1", "1", "50", "threaded", "date_asc", 0, "1", 0, "1", "", "top", "Add Message", "default", ""]: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'reviewAggregateAttributeKey' at row 1" Stacktrace: #45 Doctrine\DBAL\Exception\DriverException in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115 #44 Doctrine\DBAL\Driver\AbstractMySQLDriver:convertException in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:128 #43 Doctrine\DBAL\DBALException:driverExceptionDuringQuery in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1015 #42 Doctrine\DBAL\Driver\PDOException in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:107 #41 PDOException in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105 #40 PDOStatement:execute in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105 #39 Doctrine\DBAL\Driver\PDOStatement:execute in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1008 #38 Doctrine\DBAL\Connection:executeUpdate in /data/WWW/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:714 #37 Doctrine\DBAL\Connection:insert in /data/WWW/concrete/src/Database/Connection/Connection.php:308 #36 Concrete\Core\Database\Connection\Connection:replace in /data/WWW/concrete/src/Legacy/Model.php:65 #35 Concrete\Core\Legacy\Model:Replace in /data/WWW/concrete/src/Block/BlockController.php:194 #34 Concrete\Core\Block\BlockController:performSave in /data/WWW/concrete/src/Block/BlockController.php:210
Viewing 15 lines of 49 lines. View entire code block.
Type: | Ticket |
---|---|
Status: | Archived |
Thanks for your reply.
Changed the sql-mode in my.conf* and restarted the mysql service.
I now have the following environmental info:
I then uninstalled the theme, reinstalled with content, but i get the same error.
* had to do it in my.conf, as it doesnt persist after restart if i do it using phpmyadmin
Changed the sql-mode in my.conf* and restarted the mysql service.
I now have the following environmental info:
# concrete5 Version Core Version - 8.5.2 Version Installed - 8.5.2 Database Version - 20190925072210 # Database Information Version: 5.7.28 SQL Mode: STRICT_ALL_TABLES # concrete5 Packages Pixel Theme (2.3.0) ...
I then uninstalled the theme, reinstalled with content, but i get the same error.
* had to do it in my.conf, as it doesnt persist after restart if i do it using phpmyadmin
Fixed?
Unfortunatly not.
Wait a second....
I tried to uninstall the theme again, but this time i chose to delete the installation files (send to trash).
I reinstalled but now i have a new sql error:
I tried to uninstall the theme again, but this time i chose to delete the installation files (send to trash).
I reinstalled but now i have a new sql error:
Doctrine\DBAL\Exception\SyntaxErrorException thrown with message "An exception occurred while executing 'select cID from Pages where cParentID in () and cInheritPermissionsFromCID = ':
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and cInheritPermissionsFromCID =' at line 1"
I recommend installing a fresh instance of C5 and the theme. If it didn't work out, send me your site/host credentials via private msg and I will look into it.
Cheers,
Cheers,
Ok, I'll try and revert with results :+1:
So far i did the following:
* Kept the sql-mode setting to STRICT_ALL_TABLES
* Deleted all site files and dropped the database to start over
* Reinstalled WITHOUT content
* Tried to install the theme
got an:
Guessed this perhaps was due to som issue with the template missing some content it tries to remove in the process.
* deleted the site and database again
* reinstalled site WITH content
* Tried to install the theme again
Back to the original problem:
Is it an compability issue with my mysql version ?
I'll send you some credentials
* Kept the sql-mode setting to STRICT_ALL_TABLES
* Deleted all site files and dropped the database to start over
* Reinstalled WITHOUT content
* Tried to install the theme
got an:
Error Call to a member function getPageTemplateID() on null
Guessed this perhaps was due to som issue with the template missing some content it tries to remove in the process.
* deleted the site and database again
* reinstalled site WITH content
* Tried to install the theme again
Back to the original problem:
An exception occurred while executing 'INSERT INTO btCoreConversation (bID, cnvID, enablePosting, paginate, itemsPerPage, displayMode, orderBy, enableOrdering, enableCommentRating, enableTopCommentReviews, displaySocialLinks, reviewAggregateAttributeKey, displayPostingForm, addMessageLabel, dateFormat, customDateFormat) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [183, "5", "1", "1", "50", "threaded", "date_asc", 0, "1", 0, "1", "", "top", "Add Message", "default", ""]: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'reviewAggregateAttributeKey' at row 1
# Database Information Version: 5.7.28 SQL Mode: STRICT_ALL_TABLES
Is it an compability issue with my mysql version ?
I'll send you some credentials
Sorry for the inconvenience. Plz send me your site credentials and I look into it.
You should have received them in a PM now.
deleted
Hello Ladies and Gents,
I've been also suffering the same trouble with same (really same!) error message.
I am looking forward to hear you soon, and hope to solve it!
I've been also suffering the same trouble with same (really same!) error message.
I am looking forward to hear you soon, and hope to solve it!
A solution is not found yet.
But I've tried a lot of PHP/MySQL combinations with the same outcome.
But it seems the problem is that when the demo-content of the theme installs, It causes the installation to crash and leaves many of the demo-pages broken and page types blank.
So far I've made two observations:
Method 1
1. Install theme and let it crash.
2. Uninstall theme
3. Install theme WITHOUT content
-> successful install
This leaves you with some demo-content but all the page types are blank. It is also not possible to add new pages. No good.
Method 2
1. Reinstall a clean FULL site (default content)
2. Install theme WITHOUT content
-> Successful install
This gives you a site where page types works, new pages can be added and the theme seems to work. Unfortunately there is no demo-content to figure out which blocks go where.
But I've tried a lot of PHP/MySQL combinations with the same outcome.
But it seems the problem is that when the demo-content of the theme installs, It causes the installation to crash and leaves many of the demo-pages broken and page types blank.
So far I've made two observations:
Method 1
1. Install theme and let it crash.
2. Uninstall theme
3. Install theme WITHOUT content
-> successful install
This leaves you with some demo-content but all the page types are blank. It is also not possible to add new pages. No good.
Method 2
1. Reinstall a clean FULL site (default content)
2. Install theme WITHOUT content
-> Successful install
This gives you a site where page types works, new pages can be added and the theme seems to work. Unfortunately there is no demo-content to figure out which blocks go where.
I'm having the same issue. Method 2 "works" with the same results. :(
Plz, use the latest version of the theme, 2.4.0. And it would be best if the theme installed on top of a c5 instance with core sample content.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Plz check this topic:
https://www.concrete5.org/marketplace/themes/pixel/support/error-on-...