Loading Centry in PHP 5.6

Permalink Browser Info Environment
Hi:
I'm sending this to explain the issue I'm having loading Centry in 5.6. Since there isn't a place to attach a screenshot to a private message, I'm putting it here.
This is the fourth site to receive Centry. (Everyone -- it's an extremely impressive product). However, I need to turn PHP up to version 7 to make it work.
The attached error message is the clue. When it found an unexpected "?", I scanned through every file in the attachment and found "??" in one of the .php files. Googling the error, I found that a double question mark meant something in PHP 7 but threw an error in PHP 5.6. I went into cPanel, switched to 7. In PHP7, Portland Labs Calendar broke the site. By uninstalling Calendar and switching to 7, I was able to install and synchronize Centry. Unfortunately, i have 70+ sites, most running Calendar, so I need to keep it in 5.6 until I upgrade to concrete5 8.3.0.

1 Attachment

Type: Pre-Sale
Status: Resolved
yfsneals
View Replies:
A3020 replied on at Permalink Reply
A3020
I've uploaded version 2.1.5. Would you mind trying again?

It's really hard to manage all the versions, I'm sorry for any inconvenience.
yfsneals replied on at Permalink Reply
yfsneals
On the good side, the package went right in, no hiccoughs.
I got an error message when I tried to sync. The log entry is below.
HOWEVER, when i went to centry.nl and refreshed the page, the domain appeared.
I AM working on two different networks -- the main one won't display centry.nl in the browser.
Hope all this is helping you out as well.
VR,
N


Dec 15, 2017, 9:16:38 PM       Application    admin    Status code: 0. Response: .. #0 /home/yfsneals/public_html/alpha/sharpie/packages/centry/jobs/centry.php(49): Concrete\Package\Centry\Job\Centry->register(Object(A3020\Centry\Registration\Payload))
#1 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Job/Job.php(343): Concrete\Package\Centry\Job\Centry->run()
#2 /home/yfsneals/public_html/alpha/sharpie/concrete/controllers/frontend/jobs.php(140): Concrete\Core\Job\Job->executeJob()
#3 [internal function]: Concrete\Controller\Frontend\Jobs->run_single()
#4 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Controller/AbstractController.php(172): call_user_func_array(Array, Array)
#5 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Routing/ControllerRouteCallback.php(27): Concrete\Core\Controller\AbstractController->runAction('run_single', Array)
#6 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Routing/Router.php(149): Concrete\Core\Routing\ControllerRouteCallback->execute(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Routing\Route), Array)
#7 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Http/DefaultDispatcher.php(114): Concrete\Core\Routing\Router->execute(Object(Concrete\Core\Routing\Route), Array)
#8 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Http/DefaultDispatcher.php(54): Concrete\Core\Http\DefaultDispatcher->handleDispatch(Object(Concrete\Core\Http\Request))
#9 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\DefaultDispatcher->dispatch(Object(Concrete\Core\Http\Request))
#10 /home/yfsneals/public_html/alpha/sharpie/packages/centry/src/Centry/Http/Middleware/CentryApiTokenMiddleware.php(31): Concrete\Core\Http\Middleware\DispatcherDelegate->next(Object(Concrete\Core\Http\Request))
#11 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Http/Middleware/MiddlewareDelegate.php(38): A3020\Centry\Http\Middleware\CentryApiTokenMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\DispatcherDelegate))
#12 /home/yfsneals/public_html/alpha/sharpie/packages/centry/src/Centry/Http/Middleware/CentryEnabledMiddleware.php(31): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request))
#13 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Http/Middleware/MiddlewareDelegate.php(38): A3020\Centry\Http\Middleware\CentryEnabledMiddleware->process(Object(Concrete\Core\Http\Request), Object(Concrete\Core\Http\Middleware\MiddlewareDelegate))
#14 /home/yfsneals/public_html/alpha/sharpie/concrete/src/Http/Middleware/ThumbnailMiddleware.php(60): Concrete\Core\Http\Middleware\MiddlewareDelegate->next(Object(Concrete\Core\Http\Request))
A3020 replied on at Permalink Reply
A3020
Thanks for your debug message. However I don't see any error message in that back trace. Is that really all you see?
yfsneals replied on at Permalink Reply
yfsneals
Since it worked, eventually, I didn't pursue further.
My guess is it was that it might have something to do with the various
networks I'm working through.
Where can I look for you?



----
A3020 replied on at Permalink Reply
A3020
Ok. Good to hear. You'd sync manually via the portal, or hit 'Update Subscriptions' in the add-on. If that goes without errors, all is good. If not, an error is probably logged in concrete5 / Logs.
A3020 replied on at Permalink Reply
A3020
Today I did some more tests. I created a PHP 5.6 server on DigitalOcean and installed a fresh 8.3.0 installation. Then I connected to the marketplace and installed Centry. Once the registration token was filled in the registration and syncing went well. The domain has been added to the demo account on centry.nl.

I think we can close this ticket now. If you have other questions, don't hesitate asking them.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Background Image and Overlay (0.9.7), Centry (2.1.4), Highlight Links 1.5 (1.5.0), List files from set (1.0.12), Manual Nav (2.1.1), PDF Viewer (1.0.1), Phonebook Alpha (0.9.0), ProBlog (2.6.9), Quick Tabs (1.0), Red Alert Box (0.9.0), Redirect (1.0.0), Responsive Embed (1.0.1), Service Data Box (0.1.7), Simple Slider (1.0), Spacer (0.9.3), Stucco (1.1.3), Stupid Slider (0.9.1), SVG Social Media Icons (0.9.9), Twitter Embedded Timeline (0.9.7), Vivid Carousel (1.0.1), Vivid Simple Accordion (1.0.1), Wrap anything (0.9.2), Yellow Alert Box (0.9.0)

# concrete5 Overrides
None

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

# Server Software
Apache/2.4.23 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.6.31

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, timezonedb, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, 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 - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 16M
sql.safe_mode - Off
upload_max_filesize - 8M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
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
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.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 have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.