I have noticed an error when using CLI mode. I am not sure but feel that the Phpr::$classLoader should be set before it is used by Phpr_InternalAutoload..
This error happens on line 77 of \phproad\system\initialize.php... I see that the Phpr_InternalAutoLoad is calling load method of the Phpr::$classLoader object, and is initially called from line 91. But Phpr::$classLoader is being set to new Phpr_ClassLoader(); on line 95.. I think it may be out of order.
If this is not the case could I receive some assistance on using CLI? also is it possible to access any of the modules using the CLI? Thanks.
Page 1 of 1
PHPr CLI Fatal error Call to a member function load() on a non-object
#2
Posted 25 October 2011 - 09:22 AM
Hi Joe,
I don't think it should matter. Nothing is called between 77 and 95 that would use the class loader, AFAIK. It may be due to something else. What is the CLI command you're running?
I don't think it should matter. Nothing is called between 77 and 95 that would use the class loader, AFAIK. It may be due to something else. What is the CLI command you're running?
#3
Posted 25 October 2011 - 10:16 AM
Eric, on 25 October 2011 - 09:22 AM, said:
Hi Joe,
I don't think it should matter. Nothing is called between 77 and 95 that would use the class loader, AFAIK. It may be due to something else. What is the CLI command you're running?
I don't think it should matter. Nothing is called between 77 and 95 that would use the class loader, AFAIK. It may be due to something else. What is the CLI command you're running?
Well I am currently looking into the possibilities with CLI, but tried doing the --update and received that error.
ah, I guess I see what you mean, it is only within the function declaration not actually called there.
It appears to dump the class Loader file then I get the following error and call stack trace
Fatal error: Call to a member function load() on a non-object in C:\WebDev\SVN\LemonStand\trunk\ls\phproad\system\initialize.php on line 77
Call Stack:
0.0007 51896 1. {main}() C:\WebDev\SVN\LemonStand\trunk\ls\index.php:0
0.0018 71080 2. require_once('C:\WebDev\SVN\LemonStand\trunk\ls\boot.php') C:\WebDev\SVN\LemonStand\trunk\ls\index.php:3
0.0042 78120 3. include('C:\WebDev\SVN\LemonStand\trunk\ls\phproad\system\phproad.php') C:\WebDev\SVN\LemonStand\trunk\ls\boot.php:107
0.0066 125728 4. include('C:\WebDev\SVN\LemonStand\trunk\ls\phproad\system\initialize.php') C:\WebDev\SVN\LemonStand\trunk\ls\phproad\system\phproad.php:24
0.0358 135248 5. Phpr_InternalAutoload() C:\WebDev\SVN\LemonStand\trunk\ls\phproad\system\phproad.php:0
#4
Posted 24 January 2012 - 11:09 AM
We found the issue is that when the command is run from CLI, it does not load the local php.ini file, and thus does not set short_open_tag to On. People are required to update the global php.ini file manually, and then it works fine.
Tracker: http://forum.lemonst...d__474#entry474
Tracker: http://forum.lemonst...d__474#entry474
Share this topic:
Page 1 of 1

Help
This topic is locked













