Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2019-03-03 08:28:52

johnshorephoto
Member
Registered: 2015-05-27
Posts: 41

CE4 website suddently broken

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

#2 2019-03-03 09:11:13

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 16,420
Website

Re: CE4 website suddently broken

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 test site, Pangolin test site

Offline

#3 2019-03-03 10:18:14

johnshorephoto
Member
Registered: 2015-05-27
Posts: 41

Re: CE4 website suddently broken

Thanks Rod; will check.  js

Offline

#4 2019-03-03 10:39:23

johnshorephoto
Member
Registered: 2015-05-27
Posts: 41

Re: CE4 website suddently broken

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

#5 2019-03-03 12:30:21

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,003

Re: CE4 website suddently broken

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

#6 2019-03-04 02:27:07

johnshorephoto
Member
Registered: 2015-05-27
Posts: 41

Re: CE4 website suddently broken

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

#7 2019-03-04 02:32:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 16,420
Website

Re: CE4 website suddently broken


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2 test site, Pangolin test site

Offline

#8 2019-03-04 11:05:17

johnshorephoto
Member
Registered: 2015-05-27
Posts: 41

Re: CE4 website suddently broken

Thanks Rod.   js

Offline

Board footer

Powered by FluxBB