Joomla website wont run on virtualmin

Hi guys,
i have no idea about programming…
I have recently cloned a joomla website from siteground across to my virtualmin server.
whilst joomla was set to auto update, many of the extensions were not updated in more than 2 years.

Siteground hosting was only running php5.6…so i also installed php5.6 on my system to compensate for that, however,

I have struck the following error…in browser it just shows a white screen with “error”

virtualmin>logs and reports>apache error log

[Wed Oct 30 12:24:45.975018 2019] [proxy_fcgi:error] [pid 2305:tid 140468650178304] [client 1xx.xx6.1x5.xxx:56374] AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/flystanwell/public_html/plugins/system/gantry/gantry.php on line 406’

and corresponding line of code in joomla

// wether to load bootstrap jui or not
if (($this->contains($buffer, $this->bootstrapTriggers) || count($messages)) && version_compare(JVERSION, ‘3.0.0’) >= 0) {
JHtml::
(‘bootstrap.framework’);

any ideas?

PHP Warning is just a warning… something else is failing (PHP Fatal Error or something else). check access_log, error_log, php log, or try to run index.php by hand.
for joomla i would check configuration.php for things missing in your server…

Do you have the Joomla bootstrap framework installed?

https://docs.joomla.org/J3.x:Javascript_Frameworks

Might be of some use.

HIH

Dibs

It turns out that Gantry version 4 cannot be directly updated to Version 5.

Also, gantry v4 will only run on php 5.6…not php 7 or higher.

So what I have is a joomla 3.9 website, running with an outdated plugin on php5.6.

A bit of a nightmare combination really.

The solution was to forget about updating Gantry joomla extension (because this essentially means a website rebuild, get php 5.6 working, ensure that all the right php modules joomla needs are installed, then I got it working. Took me many hours/days of trial and error.

Gantry version 4 cannot be directly updated to Version 5