An unexpected error occurred.

Permalink Browser Info Environment
Cant get the blog to work with this theme. Any advise?

mysqlt error: [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 cvIsApproved = '1' and (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and p1.c' at line 1] in EXECUTE("select p1.cID, pt.ctHandle from Pages p1 left join Pages p2 on (p1.cPointerID = p2.cID) left join PagePaths on (PagePaths.cID = p1.cID and PagePaths.ppIsCanonical = 1) left join PageSearchIndex psi on (psi.cID = if(p2.cID is null, p1.cID, p2.cID)) inner join CollectionVersions cv on (cv.cID = if(p2.cID is null, p1.cID, p2.cID) and cvID = (select cvID from CollectionVersions where cvIsApproved = 1 and cID = cv.cID)) left join PageTypes pt on pt.ctID = cv.ctID inner join Collections c on (c.cID = if(p2.cID is null, p1.cID, p2.cID)) left join CollectionSearchIndexAttributes on (CollectionSearchIndexAttributes.cID = if (p2.cID is null, p1.cID, p2.cID)) where 1=1 and cv.cID > 283 and (CHAR_LENGTH(cv.cvName) > 4 OR cv.cvName NOT REGEXP '^[0-9]') and cv.cvDatePublic <= '2014-10-19 21:17:16' and () and cvIsApproved = '1' and (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and p1.cIsActive = '1' and (p1.cIsSystemPage = 0 or p2.cIsSystemPage = 0) ")

Type:
Status: In Progress
Scanpers
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
Hi there,

This is an auto responder to let you know that your support ticket has been forwarded to our entire support team at RadiantWeb!

Support tickets are reviewed Mondays thru Fridays 9am to 9pm & Saturdays 9am to 12pm EST.

A support team member will be following up with you as soon as possible.

Thank for supporting RadiantWeb Products!

RadiantWeb Support
http://goradiantweb.com
RadiantWeb replied on at Permalink Reply
RadiantWeb
Hi, can you please make sure that you have the "is_featured" boolean attribute in your Dashboard -> page & themes -> attributes area? If not, create one and make sure it is searchable.

ChadStrat
Scanpers replied on at Permalink Reply
Scanpers
Hi Chad.

I have no "is_featured" boolean attribute in your Dashboard.

Can you please give me a quick "how to" explanation?

George
Scanpers replied on at Permalink Reply
Scanpers
Found a "How to" I`ll give it a go and get back to you. Thanks
Scanpers replied on at Permalink Reply
Scanpers
Hi. Well I added the "is_featured" boolean attribute. And added it to the page. But I still get this. Please advice.

George

mysqlt error: [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 cvIsApproved = '1' and (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and p1.c' at line 1] in EXECUTE("select p1.cID, pt.ctHandle from Pages p1 left join Pages p2 on (p1.cPointerID = p2.cID) left join PagePaths on (PagePaths.cID = p1.cID and PagePaths.ppIsCanonical = 1) left join PageSearchIndex psi on (psi.cID = if(p2.cID is null, p1.cID, p2.cID)) inner join CollectionVersions cv on (cv.cID = if(p2.cID is null, p1.cID, p2.cID) and cvID = (select cvID from CollectionVersions where cvIsApproved = 1 and cID = cv.cID)) left join PageTypes pt on pt.ctID = cv.ctID inner join Collections c on (c.cID = if(p2.cID is null, p1.cID, p2.cID)) left join CollectionSearchIndexAttributes on (CollectionSearchIndexAttributes.cID = if (p2.cID is null, p1.cID, p2.cID)) where 1=1 and cv.cID > 272 and (CHAR_LENGTH(cv.cvName) > 4 OR cv.cvName NOT REGEXP '^[0-9]') and cv.cvDatePublic <= '2014-10-20 09:10:53' and () and cvIsApproved = '1' and (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and p1.cIsActive = '1' and (p1.cIsSystemPage = 0 or p2.cIsSystemPage = 0) ")
Scanpers replied on at Permalink Reply
Scanpers
Hi.

Did all you suggested. But still get the same error. Any ides on what else I could try?

George
c5mix replied on at Permalink Reply
c5mix
Chad,
I'm getting this same (or similar error when trying to go to the List page in the dashboard (/dashboard/problog/list/). There was no "is_featured" attribute, but I added it like you mentioned and the error remains. Any idea for a fix?

mysqlt error: [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 (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and (p1.cIsSystemPage = 0 or p2' at line 1] in EXECUTE("select p1.cID, pt.ctHandle from Pages p1 left join Pages p2 on (p1.cPointerID = p2.cID) left join PagePaths on (PagePaths.cID = p1.cID and PagePaths.ppIsCanonical = 1) left join PageSearchIndex psi on (psi.cID = if(p2.cID is null, p1.cID, p2.cID)) inner join CollectionVersions cv on (cv.cID = if(p2.cID is null, p1.cID, p2.cID) and cvID = (select max(cvID) from CollectionVersions where cID = cv.cID)) left join PageTypes pt on pt.ctID = cv.ctID inner join Collections c on (c.cID = if(p2.cID is null, p1.cID, p2.cID)) left join CollectionSearchIndexAttributes on (CollectionSearchIndexAttributes.cID = if (p2.cID is null, p1.cID, p2.cID)) where 1=1 and (CHAR_LENGTH(cv.cvName) > 4 OR cv.cvName NOT REGEXP '^[0-9]') and () and (p1.cIsTemplate = 0 or p2.cIsTemplate = 0) and (p1.cIsSystemPage = 0 or p2.cIsSystemPage = 0) order by cDateAdded desc limit 0,15 ")


Scanpers,
Were you able to get this resolved?
RadiantWeb replied on at Permalink Reply
RadiantWeb
Can you check and make double sure that you have at least one page in your sitemap that has the "blog_section" attribute?

C
c5mix replied on at Permalink Reply
c5mix
Ok that was it. Client had checked the blog section attribute but never published the page (only saved it)

Thanks!
Scanpers replied on at Permalink Reply
Scanpers
Hi Chad.

We were able to work around the problem. Took us days to get it sorted. Not sure what the solution. Was in the end I it wasn't me working on it in the end. But I`ll ask my colleague if he can write a summary.
Scanpers replied on at Permalink Reply
Scanpers
Talked to my colleague he states that we also found out that the primary cause for this error was that there was no page with a blog_section attribute. a better error message than an sql error would be highly appreciated in this situation.

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Advanced Slider (2.0.1), Content Slider (1.2.5), Easy tabs (1.7), Pro Blog (12.4.4), Silence Theme (1.6.1), Social Icons Reloaded (1.9), tnSpacer (1.3).

# concrete5 Overrides
css/silence

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache/2.2.22 (Ubuntu)

# Server API
apache2handler

# PHP Version
5.3.14

# PHP Extensions
apache2handler, apc, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, oci8, openssl, pcre, PDO, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend Code Tracing, Zend Data Cache, Zend Debugger, Zend Download Server, Zend Job Queue, Zend Optimizer+, Zend Page Cache, Zend Session Clustering, Zend Utils, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
oci8.max_persistent - -1
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
zend_codetracing.max_concurrent_trace_buffers - 5
zend_codetracing.max_depth - 2
zend_codetracing.max_elements - 10
zend_codetracing.max_freq - 1
zend_codetracing.max_string - 48
zend_debugger.max_msg_size - 2097152
zend_debugger.tunnel_max_port - 65535
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36

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.