1.5.1 new feature : structured data

Permalink Browser Info Environment
Dear Devoda team,

I have just upgraded to the latest version, with the please of noticing that schema.org markup can now be used. This is a great addition !

However, this can't be used, with or without chosen value (at page level).
I'm getting the following error, whether I do leave it empty or input something :

An exception occurred while executing 'INSERT INTO atMetaDevodaSeo (robots_advanced_type, robots_noodp, robots_noimageindex, robots_noarchive, robots_nosnippet, robots_notranslate, open_graph_title, open_graph_description, open_graph_image, google_plus_title, google_plus_description, google_plus_image, twitter_title, twitter_description, twitter_image, twitter_card_type, avID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["0", 0, 0, 0, 0, 0, null, null, "345", null, null, "345", null, null, "345", "", 81449]: SQLSTATE[HY000]: General error: 1364 Field 'structured_data' doesn't have a default value

The query doesn't look like it encompasses the actual parameter save.


Will there be a next update to fix this ?

Thanks,
Christian

Type: Ticket
Status: Archived
flyXtian
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Christian,

Oh indeed, this column was missing. Thought the ORM would fix that, but apparently, it did not. So update to version 1.5.2 and it should be available for you! Let me know if that worked out for you.

Kind regards,

Ramon
flyXtian replied on at Permalink Reply
flyXtian
Hi,

thanks for your quick reply and response...but it seems that still doesn't work.

Here's what I'm getting when trying to save some details into the field :
Exception Occurred: /var/www/(private)/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115 An exception occurred while executing 'INSERT INTO atMetaDevodaSeo (robots_advanced_type, robots_noodp, robots_noimageindex, robots_noarchive, robots_nosnippet, robots_notranslate, open_graph_title, open_graph_description, open_graph_image, google_plus_title, google_plus_description, google_plus_image, twitter_title, twitter_description, twitter_image, twitter_card_type, avID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["0", 0, 0, 0, 0, 0, null, null, "33", null, null, 0, null, null, "33", "summary_large_image", 81734]:
SQLSTATE[HY000]: General error: 1364 Field 'structured_data' doesn't have a default value (0)

(and I'm not seeing "structured data" in this query ?)

Plus, I'm trying to get back to editing another page where I did try before to add structured data, to no avail.
Checking the log gets me this :
Exception Occurred: /var/www/(private)/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115 An exception occurred while executing 'UPDATE CollectionSearchIndexAttributes SET ak_meta_devoda_seo = ? WHERE cID = ?' with params ["", "565"]:
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column 'ak_meta_devoda_seo' at row 1 (0)


Thanks for your time,
Christian
ramonleenders replied on at Permalink Reply
ramonleenders
So you did the update and got different errors, correct?

I guess I can't replicate this, without a dump of your database/website... Everything I try works. So can't really do anything without. Did you check the atMetaDevodaSeo database table if the column "structured_data" is there and what it's options are?

Kind regards,

Ramon
flyXtian replied on at Permalink Reply
flyXtian
Hi !

Indeed I did update.
Going to the db table does get me this column, with parameters :
longtext utf8_unicode_ci, not null and no default value.

Should I change something ?

Christian
ramonleenders replied on at Permalink Reply
ramonleenders
Should be nullable... otherwise you'd always have to enter something. Anyways, it would still have to save if you enter something. Which it doesn't? So that's pretty weird!

Kind regards,

Ramon
flyXtian replied on at Permalink Reply
flyXtian
Well, right now the issue with this :

Exception Occurred: /var/www/(private)/httpdocs/packages/devoda_seo/attributes/meta_devoda_seo/controller.php:140 Call to a member function getOpenGraphTitle() on null (0)

is the query that's supposed to build the properties form errors on the controller assembling an array, so the properties never show up.

Did this get updated lastly ? what kind of thing would be likely to trigger the error ?

I was thinking of removing the addon altogether and do a clean install, but that would mean setting it up all over again.
Is there some halfway point to be found ?


Thanks for any support you can provide.
This has gone from "yay, new feature" to "editing any attribute on some pages is completely broken".

On the plus side : on those pages where editing works, I was able to successfully add and save structured content.
It seems those of the pages where editing fails were the ones I tried to edit before you issued the update. Shall I go and delete the "attributeValue" items in the database to reset this ? The aforementioned logged error only happens when fetching db data to prepare for attributes edition.


Cheers
Christian
ramonleenders replied on at Permalink Reply
ramonleenders
Christian,

Weird stuff... That function didn't get updated lately, no. So weird things happening there. Even weirder is the fact that stuff is working for some of your pages. It should either work or not work at all haha. You can try some things out, but be sure to make a backup before you do that. I could take a look if I have a dump of the site + database, but I'm not sure if you're able to share that.

Kind regards,

Ramon
flyXtian replied on at Permalink Reply
flyXtian
Hey,

since this looked to only affect those pages where a Devoda attribute was there between 1.5.1 and 1.5.2 and not where there was none, I just went to the DB, deleted the CollectionAttributeValues entry matching the package akID with the affected cID in the latest collection version, and it did the trick !

Pages saved :-)
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.1
Version Installed - 8.4.1
Database Version - 20180710203437

# concrete5 Packages
Background Image and Overlay (0.9.9), Clear Clipboard (1.0.0), Cookies Notice (1.3.2), Cycle2 Slide Show (1.0.2), Deluxe Customizable Twitter Feed (1.0.3), Devoda SEO (1.5.1), Editor Comment (7.0.1), EZ Event (1.0), Fundamental (4.0.5), HonestWebsites Simple testimonials (1.0.0), HTML+PHP Code Block (1.0.1), List files from set (1.0.12), Login Block (0.9.3), Login Page Background (0.9), Minify HTML (1.1), Page Redirect (2.0), Page Selector Attribute (2.0), Pure Accordion (0.9.2), Quick Tabs (1.0), Random Image (1.0), Responsive Embed (1.0.1), Scroll To Top (1.0.0), Styled Maps (1.2.3), Stylish Ordered Lists (1.0), SVG Social Media Icons (0.9.9), Twitter Embedded Timeline (0.9.7), Twitter Feed Block Components (0.9.18)

# concrete5 Overrides
blocks/feature/templates/lien_externe.php, blocks/feature/templates/externe_hover.php, blocks/feature/templates, blocks/feature, blocks/social_share_lite/templates/buttons.php, blocks/social_share_lite/templates, blocks/social_share_lite, blocks/page_list/templates/almightree.php, blocks/page_list/templates/h2_thumbnail_list/view.css, blocks/page_list/templates/h2_thumbnail_list/view.php, blocks/page_list/templates/h2_thumbnail_list, blocks/page_list/templates, blocks/page_list, blocks/autonav/templates/almightree.php, blocks/autonav/templates/top_bar.php, blocks/autonav/templates, blocks/autonav, blocks/customizable_twitter_feed/templates/acjm_homepage.php, blocks/customizable_twitter_feed/templates, blocks/customizable_twitter_feed, blocks/image/view.php, blocks/image, controllers/single_page/members, controllers/single_page/dashboard/challenge_acjm.php, controllers/single_page/dashboard/perm.php, controllers/single_page/dashboard/acjm/general.php, controllers/single_page/dashboard/acjm/orga/ca.php, controllers/single_page/dashboard/acjm/orga, controllers/single_page/dashboard/acjm, controllers/single_page/dashboard/acjm.php, controllers/single_page/dashboard, controllers/single_page, elements/header_required.php, jobs/perm.php, jobs/vols_perm.php, css/account.css, mail/block_form_submission.php, mail/block_express_form_submission.php, mail/boitavols.php, single_pages/page_not_found.php, single_pages/members/annuaire.php, single_pages/members/profile.php, single_pages/members/droit_img.php, single_pages/members/droit_img_base.php, single_pages/members, single_pages/acgestion.php, single_pages/ag-resa.php, single_pages/SG_iCal.php, single_pages/inscription.php, single_pages/ical_snippet.php, single_pages/boitavols_beta.php, single_pages/challenge_saisie.php, single_pages/tarifex.php, single_pages/leperm.php, single_pages/eleves.php, single_pages/page_forbidden.php, single_pages/dashboard/challenge_acjm.php, single_pages/dashboard/perm.php, single_pages/dashboard/acjm/general.php, single_pages/dashboard/acjm/orga/ca.php, single_pages/dashboard/acjm/orga/cles.php, single_pages/dashboard/acjm/orga/rappels-de-permanence/notif.php, single_pages/dashboard/acjm/orga/rappels-de-permanence, single_pages/dashboard/acjm/orga, single_pages/dashboard/acjm/ops, single_pages/dashboard/acjm, single_pages/dashboard/acjm.php, single_pages/dashboard

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.1.20

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

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 90
max_input_vars - 1000
memory_limit - 192M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 64M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.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
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0

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.