Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hi -
My CE4 website (www.jshorephoto.com) has suddenly broken. I have not changed it in quite some time.
There should be a slideshow on the home page, but it does not appear. Worse, various pages throw errors. For example, going to http://www.jshorephoto.com/galleries/performance/ yields the error below. I'm traveling overseas (Chile) - I can't imagine it's relevant, but I wanted to mention it.
Here's the error; any advice/info would be greatly appreciated!
js
count(): Parameter must be an array or an object that implements Countable|#0 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/framework/helpers/SimpleHTMLTag.php(29): ErrorHandler::handleError(2, 'count(): Parame...', '/services15/web...', 29, Array) #1 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/publisher/application/models/Album.php(396): SimpleHTMLTag->__construct('ul.breadcrumbs') #2 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/publisher/application/models/Album.php(289): Album->generateBreadcrumbMarkup(Array, Array, false) #3 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/templates/autoindex/js_auto-index_reverse/template_index.php(321): Album->getBreadcrumbs(Array) #4 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/publisher/application/controllers/GalleryController.php(184): include_once('/services15/web...') #5 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/framework/controllers/Controller.php(41): GalleryController->autoindex('66624', 'index', '') #6 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/ttg-be/framework/Framework.php(124): Controller->dispatch(Array) #7 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/galleries/performance/lib.php(48): Framework->route() #8 /services15/webpages/util/f/v/fv1lu4pjc0j1.site.aplus.net/jshorephoto.com/public/galleries/performance/index.php(4): route(Array) #9 {main}|URL: /galleries/performance/index.php
Offline
what version of php is your host using? Have they updated it recently.
If they’ve upgraded to php 7, for instance, you might try rolling it back to something like 5.6
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod; will check. js
Offline
So my host confirmed that they updated php, and also that they are phasing out 5.6. In particular, they said:
"Lots of our customers use third party tools and are able to find help online about how to update their site. It's often as simple as changing a 5 to a 7 in the code. We are phasing out 5.6 due to the changing landscape of the internet and because it's now more difficult to maintain older versions of PHP."
Is there anyway to have CE4 work under version 7. I guess I can look for another host, but it sounds like I'll eventually run into the same problem.
Thanks again for identifying the problem!
js
Offline
CE4 should work in version PHP 7. That particular incompatibility has been addressed, and can be fixed on your server by downloading the latest version of TTG BE and updating it. In particular, replacing this single file should fix it:
ttg-be/framework/helpers/SimpleHTMLTag.php
Offline
Thanks Ben! As is obvious, I haven't been diligent about updates. I keep meaning to transition to Backlight (which I purchased when it first came out), but I just haven't done that either. Are there perhaps consultants who can assist in moving over from CE4 to Backlight?
js
Offline
see if this helps: https://ttg-tips-and-tricks.barbeephoto … backlight/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod. js
Offline
Pages: 1