![]() |
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 |
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?
|
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. |
thanks you ;)
i will check later your solution :) If I use php 7, which version is recommended? @Phogo i test several cms tracker |
U-232 v5 is coded to work with PHP7
|
cache.php
Replace code in cache.php with below
PHP Code:
|
Quote:
|
@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 ? |
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. |
chmod 777 permission on this file. /var/www/cache/blocks_middle.cache
|
All times are GMT +2. The time now is 03:39. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2025, vBulletin Solutions Inc.