Data sensitive errors

Permalink Browser Info Environment
I setup a block and created about 75 copies with data in the various segments. All work fine, except for 2 specific records that keep giving errors after they are created. Note, they do NOT give an error when I add them. And then they display a few times just fine. Then, the same 2 start reporting this error:


Warning/home/odexce5/public_html/newodxsite/odxnew/packages/designer_content_pro/libraries/dcp_controller.php239
: Invalid argument supplied for foreach() in on line : Invalid argument supplied for foreach() in on line

I've attached the customized view files. I am confused as to how the data could cause these two to always be the ones. All of the others work fine. Can you see anything?

1 Attachment

Type: Discussion
Status: In Progress
odexcellence
View Replies:
theblockery replied on at Permalink Reply
theblockery
Hi,
I'm sorry about this problem. I'm not 100% sure, but it sounds similar to an issue someone else had a few months ago related to database encoding. It seemed that they were pasting content from a word doc, which included some "special characters" (like curly quotes, em-dashes, currency symbols, etc.). But their database was set to an ASCII or Latin encoding instead of UTF-8, so the characters were not being saved properly and it was causing problems when the system tried to read the block data.

Do you know how to check your database for the default encoding (or specifically the encoding on your DCP tables, which are all prefixed with "btDcp___")? If you're familiar with these kinds of database operations (usually using PHPMyAdmin through your web host's CPanel or Plesk Panel) then I recommend changing the table encoding to UTF8. If you're not sure how to do that or are uncomfortable with it, let me know and I would be happy to help you with it.

Please email me directly at jordan@theblockery.com if you'd like further assistance so I can be sure I see your response (sometimes the C5 forum doesn't send me an email notification when people reply, so emailing me directly is the best way to ensure a quick response).

-Jordan

concrete5 Environment Information

# concrete5 Version
5.6.3.2

# concrete5 Packages
Advanced Slider (2.0.1), Alpha (1.0.3), Are You A Human (1.0.1), Blocks by AJAX (2.3.0.3), Cache Filler Job (1.1), Code Blocks (1.2.1), CometChat (2.0.3), Config Info (1.0), Dealer Locator (1.5), Designer Content Pro (1.2.2), Designer Content Pro - Custom Block Storage (1.0), Discussion (1.8.6), Document Library (1.6.4), Dynamic Iframe (1.7), Easy Accordion (1.1.2), Easy tabs (1.7.2), eCommerce (2.8.12), Editor Comment (1.0), Extended Search (1.0), Extreme Clean (1.0), Fileset Portfolio (1.1.1), FlexSlider (2.2.0.5), Formigo Containers (1.0.0), Formigo Slider (1.0.4), Foundation 5 (1.6.0), Google Map Enchanced (1.0.7), GroupDocs Assembly (1.0.4), Iframe (1.0), Keycaptcha (1.0), Last Updated (1.4.2), Link List (1.05), Link System (1.17), Login History (1.0), Magic Tabs (1.1.0.8), Magic Toggle (1.1), Mailchimp (1.3.4), Maintenance Advanced (1.1), Page List Pro (0.9.1), PHP block by ND (1.0), PHP Info (1.1), Pro Blog (12.4.4), Pro Events (11.1.0), Pro Media (7.5.0), reCAPTCHA (0.9.2), Social Feed (1.7), SQL Info (1.1), Stack Manager (0.9.4), Syntax Highlighter (1.0.1), Templates bundle for Blocks by AJAX (1.0), The Void theme (1.1), Universal Content Puller (1.4.2), Upload and Install Packages (0.9.4.2), Users' Pages (1.0.1), YouTube Channel (1.3.17), YouTube Pro (1.3.6).

# concrete5 Overrides
blocks/vendor_record, blocks/dcp_vendor, helpers/concrete, languages/sk_SK, languages/sl_SI, languages/it_IT, languages/ja_JP, languages/nl_NL, languages/es_ES, languages/fa_IR, languages/sv_SE, languages/ru_RU, languages/zh_CN, languages/zh_TW, languages/tr_TR, languages/de_DE, languages/ro_RO, languages/vi_VN, languages/pt_PT, languages/ar, languages/da_DK, languages/es_AR, languages/nb_NO, languages/es_PE, languages/fr_FR, languages/el_GR, languages/cs_CZ, languages/es_MX, languages/fi_FI, languages/he_IL

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.3.29

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, htscanner, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 4000
memory_limit - 512M
post_max_size - 128M
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 - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
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 - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 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.