/home/user/script.php is making the call to Zend_Validate, but your include path's library path is:
/home/ytang/sourcecode/new_website/branches/ytang/library
Why are these different? I'm wondering if you're not properly bootstraping Zend Framework in your script.php.
I suspect that the following file does NOT exist.
/home/ytang/sourcecode/new_website/branches/ytang/library/Zend/Validate/Regex.php
Konr
On Thu, Feb 11, 2010 at 1:07 PM, Yi Tang <ytang@mbira.com> wrote:
Here is the trace for the error:
<br /> <b>Warning</b>: include_once(Regex.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in <b>/home/ytang/sourcecode/new_website/branches/ytang/library/Zend/Loader.php</b> on line <b>146</b><br /> <br /> <b>Warning</b>: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'Regex.php' for inclusion (include_path='/home/ytang/sourcecode/new_website/branches/ytang/library:/home/ytang/sourcecode/new_website/branches/ytang/application/default/models') in <b>/home/ytang/sourcecode/new_website/branches/ytang/library/Zend/Loader.php</b> on line <b>146</b><br />#0 Zend_Loader::loadFile(Regex.php, , 1) called at [/home/user/library/Zend/Loader.php:94] #1 Zend_Loader::loadClass(Regex) #2 call_user_func(Array ([0] => Zend_Loader,[1] => loadClass), Regex) called at [/home/user/library/Zend/Loader/Autoloader.php:474] #3 Zend_Loader_Autoloader->_autoload(Regex) #4 call_user_func(Array ([0] => Zend_Loader_Autoloader Object ([] => Array (),[] => Array ([0] => Zend_Loader,[1] => loadClass),[] => 1,[] => Array ([0] => Zend_Loader_Autoloader Object ( *RECURSION*,[1] => _autoload),[] => Array ([Zend_] => 1,[ZendX_] => 1),[] => Array (),[] => ,[] => ),[1] => _autoload), Regex) called at [/home/ytang/sourcecode/new_website/branches/ytang/library/Zend/Loader/Autoloader.php:130] #5 Zend_Loader_Autoloader::autoload(Regex) #6 spl_autoload_call(Regex) #7 class_exists(Regex) called at [/home/user/library/Zend/Validate.php:200] #8 Zend_Validate::is(cus9em4dlalohg9bum0v0ldmi3, Regex, Array ([0] => /[^a-v0-9]/)) called at [/home/user/script.php:64] Matthew, can you provide any insights? Thanks, Yi
On 2/11/10 10:58 AM, Yi Tang wrote:Thanks for the reply, Konr. I checked to make sure the file does exist. The interesting thing is that when I do this it works:
Zend_Validate::is($value, 'Zend_Validatet_Regex', array('/[^a-v0-9]/'))
I'm still running php 5.2.9, not 5.3.x. I wonder if that's a possible cause. But Zend Framework requirements state it only requires 5.2.4 to run.
Do you have any more insights?
Thanks,
Yi
On 2/10/10 8:59 PM, Konr Ness wrote:I tried it on my installation and it worked just fine. Can you confirm that the following file exists:
/home/user/library/Zend/Validate/Regex.php
Konr
On Wed, Feb 10, 2010 at 5:34 PM, Yi Tang <ytang@mbira.com> wrote:
Zend_Validate::is($value, 'Regex', array('/[^a-v0-9]/'))
It used to work perfectly, now it throws this error:
Warning: include_once() [function.include]: Failed opening 'Regex.php' for inclusion (include_path='/home/user/library:/home/user/application/default/models') in /home/user/library/Zend/Loader.php on line 146
Any idea on what's going on here? Thanks!
Yi
没有评论:
发表评论