Support ⇒ Dragonfly CMS v10 ⇒ if (70300 > PHP_VERSION_ID) ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

if (70300 > PHP_VERSION_ID) Reply to topic


I just pulled from source.

require 'php/73.php';


This file doesn't seem to exist and is causing my site to 500.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


If I comment out this line, I get another error:
Call to undefined function Poodle\TPL\array_key_last() in header on line 320

And the ?install page just contains garbled characters.
Time to restore from backup I guess.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Create that file and use this content:

<?php function array_key_last(array $array) { if (!empty($array)) { return array_keys($array)[count($array)-1]; } }

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head

Last edited by NanoCaiordo on Sun Jan 26, 2020 2:50 am; edited 1 time in total

All times are UTC


Jump to: