reinstall old cakePHP v1.3.11 project

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
nitiphone2021
php-forum Active User
php-forum Active User
Posts: 31
Joined: Fri Jan 08, 2021 8:10 pm

Sat May 29, 2021 5:46 am

Hi all friends,

As I want to install old cakePHP project from v1.3.11 in my virtualBox but when I run it fail

Do you have any idea how this error message?

I am not the writer of the project but I need to reinstall it

this is the requirement for the project

Ubuntu 16.04.7 LTS
Apache/2.4.18
PHP 5.6.40-47+ubuntu16.04.1+deb.sury.org+1
mysql 5.7.33
phpmyadmin 4.5.4
Image
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 137
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Sat May 29, 2021 10:45 am

Paste the errors as text, the image is illegible.
nitiphone2021
php-forum Active User
php-forum Active User
Posts: 31
Joined: Fri Jan 08, 2021 8:10 pm

Sat May 29, 2021 7:23 pm

Code: Select all

Warning: Illegal string offset 'file' in /var/www/html/NlLaosF/cake/libs/debugger.php on line 632

Warning: Illegal string offset 'line' in /var/www/html/NlLaosF/cake/libs/debugger.php on line 632

Strict Standards: Non-static method Configure::read() should not be called statically in /var/www/html/NlLaosF/cake/basics.php on line 213

Strict Standards: Non-static method Configure::getInstance() should not be called statically in /var/www/html/NlLaosF/cake/libs/configure.php on line 156
Warning (2): fopen(../../app/webroot/lang/lang_en.php) [function.fopen]: failed to open stream: No such file or directory [APP/app_controller.php, line ??]
Warning: Illegal string offset 'file' in /var/www/html/NlLaosF/cake/libs/debugger.php on line 632

Warning: Illegal string offset 'line' in /var/www/html/NlLaosF/cake/libs/debugger.php on line 632
Warning (2): fwrite() expects parameter 1 to be resource, boolean given [APP/app_controller.php, line ??]
Warning: Illegal string offset 'file' in /var/www/html/NlLaosF/cake/libs/debugger.php on line 632

Warning: Illegal string offset 'line' in /var/www/html/NlLaosF/cake/libs/debugger.php on line 632
Warning (2): fclose() expects parameter 1 to be resource, boolean given [APP/app_controller.php, line ??]
Warning (2): require_once(../../app/webroot/lang/lang_en.php) [function.require-once]: failed to open stream: No such file or directory [APP/app_controller.php, line ??]
Fatal error: require_once() [function.require]: Failed opening required '../../app/webroot/lang/lang_en.php' (include_path='.:/usr/share/php:/var/www/html/NlLaosF:/var/www/html/NlLaosF/app/') in /var/www/html/NlLaosF/app/app_controller.php on line 0

This is the error
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 137
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Sun May 30, 2021 3:22 am

The fatal error says a file is missing. Is the file it's talking about where it should be?
nitiphone2021
php-forum Active User
php-forum Active User
Posts: 31
Joined: Fri Jan 08, 2021 8:10 pm

Sun May 30, 2021 5:42 am

error about not found this file lang_en.php
but as I checked the file in their
/var/www/html/NlLaosF/app/webroot/lang/lang_en.php

Do you have any idea about cakePHP that they config the routing path?
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 137
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Sun May 30, 2021 6:18 am

It looks like the code is running in the file /var/www/html/NlLaosF/app/app_controller.php

The relative path being checked for is ../../app/webroot/lang/lang_en.php

That is parsed to /var/www/html/app/webroot/lang/lang_en.php - that's what's gone wrong.
Post Reply