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


I think it's still broken. However my repository could be broken now with all the back and forth.

PHP Warning Unknown line 0: Unknown: Cannot call session save handler in a recursive manner PHP Warning includes/poodle/classes/pagination.php line 44: Division by zero PHP Warning includes/poodle/classes/pagination.php line 45: Division by zero [16-Apr-2020 08:34:59 Australia/Adelaide] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in includes/poodle/classes/pagination.php on line 179 [16-Apr-2020 08:34:59 Australia/Adelaide] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in includes/core.inc on line 161 [16-Apr-2020 08:34:59 Australia/Adelaide] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0 [16-Apr-2020 08:34:59 Australia/Adelaide] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12288 bytes) in includes/poodle/sql/adapter/mysqli.php on line 224

Edit: I reconciled my repository and it looks fine.

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

Last edited by hybrid on Thu Apr 16, 2020 6:31 am; edited 1 time in total


Try

function array_key_last($array) { if (is_array($array)) { end($array); return key($array); } return; }

Edit:
- if (is_array($array) && count($array)) { + if (is_array($array)) {

.:: 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 Thu Apr 16, 2020 12:15 pm; edited 1 time in total


That seems to have fixed this one, thank you.

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


Ok, still having issues:
PHP Warning includes/poodle/classes/pagination.php line 44: Division by zero PHP Warning includes/poodle/classes/pagination.php line 45: Division by zero [28-Apr-2020 23:32:37 Australia/Sydney] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 33554440 bytes) in includes/poodle/classes/pagination.php on line 147


Edit: I don't know what is going on. It was working fine when I checked previously, now all broken again. I thought it was only broken on new topics, but it's broken on existing ones too. I have reverted the site again.

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

Last edited by hybrid on Tue Apr 28, 2020 1:49 pm; edited 3 times in total

All times are UTC


Jump to: