|
#1
|
|||
|
|||
problem setup
Hello :)
I i have install torrent trader 3 beta. The install is ok but if i want change config with settings page (in admin cp) When I validate a blank page is displayed and no changes are made And I also have the error message display on the site : Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; TTCache has a deprecated constructor in /var/www/backend/cache.php on line 14 Fatal error: Cannot redeclare breadcrumbs() (previously declared in /var/www/backend/functions.php:1705) in /var/www/functions.php on line 1705 Warning: array_keys() expects parameter 1 to be array, string given in /var/www/backend/functions.php on line 1730 thanks you for your help |
#2
|
||||
|
||||
Sounds like the php version your using isn't right. I wouldn't recommend using this source. Why not use an actually well developed code such as Project U-232?
|
#3
|
||||
|
||||
First error is showing because you're using PHP7.
For example if you have this class: PHP Code:
PHP Code:
Second error is showing because you have declared a function twice. And the last error is showing because that the function array_keys() only accept an array as its first argument.
__________________
|
#4
|
|||
|
|||
thanks you ;)
i will check later your solution :) If I use php 7, which version is recommended? @Phogo i test several cms tracker |
#5
|
|||
|
|||
U-232 v5 is coded to work with PHP7
|
#6
|
|||
|
|||
cache.php
Replace code in cache.php with below
PHP Code:
|
#7
|
||||
|
||||
It depends. PHP7 is continously updated. For example if it works on PHP 7.0.1 it doesn't mean that it will work on 7.2.0 too.
__________________
|
#8
|
|||
|
|||
@CHez if the problem is my php, where is the best php version for tt3?
thanks you for your help, @I3on, i have switch with your cache.php, i have a css problem after update cache.php : http://imgur.com/uOW0w3g and the error code : Warning: fopen(/var/www/cache/blocks_middle.cache): failed to open stream: Permission denied in /var/www/backend/cache.php on line 36 Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/backend/cache.php on line 37 Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/backend/cache.php on line 38 have you a idea for the black page problem ? Last edited by Zamachi; 2nd August 2017 at 19:15. |
#9
|
||||
|
||||
PHP versions below 5 are almost another language entirely and they are deprecated and filled with more bugs and they are more vulnerable to exploits.
You can use PHP 5 but you should contact the sourcecode developer and ask him on which PHP version is the code built.
__________________
|
#10
|
|||
|
|||
chmod 777 permission on this file. /var/www/cache/blocks_middle.cache
|
Tags |
problem , setup |
Thread Tools | |
|
|