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.
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.
Type: | Pre-Sale |
---|---|
Status: | Resolved |
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
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))
Viewing 15 lines of 29 lines. View entire code block.
Thanks for your debug message. However I don't see any error message in that back trace. Is that really all you see?
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?
----
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?
----
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.
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.
I think we can close this ticket now. If you have other questions, don't hesitate asking them.
It's really hard to manage all the versions, I'm sorry for any inconvenience.