Block inactive after site migration

Permalink Browser Info Environment
Hello,

after just moving a site from a test environment to a production server, I'm happening to find all PHP blocks solely display raw code and not interpret it. I have tried toggling the block on and off, with no luck.
Is there any chance that a server parameter is blocking this from happening ? These are different hosts.

Thanks for your help !

Regards,
Christian

Type: Pre-Sale
Status: In Progress
View Replies:
lobar replied on at Permalink Reply
lobar
Hi Christian,

At first glance I would say that if a simple migration causes the phpblocks to be only in raw mode, it is maybe a global configuration switch that overrides the settings.

Can you check again your config settings ?

Otherwise it may be a key in the database that is still pointing to the old domain.
Can you check in the db table if you see somewhere your old domain name somewhere?
For more precision, the table name involved in the PhpCodeBlock is btPhpCodeBlockContent (if it helps...).
flyXtian replied on at Permalink Reply
Thanks for your quick reply !

I also tried raw phpMyAdmin edition of some blocks, which worked but only
outside of php tags. Could the code not be interpreted because I only used
<? tags and not <?php ...?

What kind of config settings do you recommend ? Db access ?
Everything else works fine on the new install, page edition,
checkout/checkin, regular block edition.

Christian
flyXtian replied on at Permalink Reply
Got it. The new host requires <?php for the blocks to work, while the previous server was ok with just <?

Situation solved !
Christian
lobar replied on at Permalink Reply
lobar
Happy to hear that!

concrete5 Environment Information

# concrete5 Version
Core Version - 8.1.0
Version Installed - 8.1.0
Database Version - 20170123000000

# concrete5 Packages
Background Image and Overlay (0.9.9), Deluxe Customizable Twitter Feed (0.9.9), Editor Comment (7.0.1), Event Calendar (3.3.6), Fundamental (4.0.1), 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), Open Graph Tags Lite (2.1.3), Page Redirect (2.0), Page Selector Attribute (2.0), Quick Tabs (1.0), Responsive Embed (1.0.1), Social Share Lite (2.1.3), Stylish Ordered Lists (1.0), SVG Social Media Icons (0.9.9)

# concrete5 Overrides
blocks/express_entry_list/templates/trombino_ca.php, blocks/express_entry_list/templates/liste_flotte.php, blocks/express_entry_list/templates/trombino_fi.php, blocks/express_entry_list/templates/liste_tarifs.php, blocks/express_entry_list/templates/tarifs_ecole.php, blocks/express_entry_list/templates, blocks/express_entry_list, blocks/express_entry_detail/templates/avion.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, blocks/feature/templates/lien_externe.php, blocks/feature/templates, blocks/feature, blocks/social_share_lite/templates/buttons.php, blocks/social_share_lite/templates, blocks/social_share_lite, controllers/single_page/members, controllers/single_page, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, single_pages/page_not_found.php, single_pages/members/annuaire.php, single_pages/members/profile.php, single_pages/members, single_pages/acgestion.php, blocks/express_entry_list/templates/trombino_ca.php, blocks/express_entry_list/templates/liste_flotte.php, blocks/express_entry_list/templates/trombino_fi.php, blocks/express_entry_list/templates/liste_tarifs.php, blocks/express_entry_list/templates/tarifs_ecole.php, blocks/express_entry_list/templates, blocks/express_entry_list, blocks/express_entry_detail/templates/avion.php, blocks/express_entry_detail/templates, blocks/express_entry_detail, blocks/feature/templates/lien_externe.php, blocks/feature/templates, blocks/feature, blocks/social_share_lite/templates/buttons.php, blocks/social_share_lite/templates, blocks/social_share_lite, controllers/single_page/members, controllers/single_page, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, single_pages/page_not_found.php, single_pages/members/annuaire.php, single_pages/members/profile.php, single_pages/members, single_pages/acgestion.php

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

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
5.6.30

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, 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
mysql.max_links - Unlimited
mysql.max_persistent - 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 - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.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.