Strange ZEND class loading error with NOKIA E72 phone

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange ZEND class loading error with NOKIA E72 phone

mike55
hi,

i've got a very strange class loading error and no idea how to solve it.

the ZF website works fine with desktop PC and with mobile phones.

but theres one exception: with a NOKIA E72 phone and probably other symbian phones
theres a fatal error:

Fatal error: Class "Zend_Validate_Ip" not found in /home..../functions.php
on line 614
line 614: $validator = new Zend_Validate_Ip();

functions.php is globally imported and contains general purpose functions

if i exchange Zend_Validate_Ip(); with self-written code, theres no error at this line.
but the same error happens with another class on another line

Fatal error: Class "Zend Auth" not found in /home..../functions.php
on line 790
line 790: $auth = Zend_Auth::getInstance();


ZF version is 1.11.3

since it works fine with all other devices i've got no idea what to do.

i wrote a userErrorHandler and a exception_handler. both don't catch the exeption.

the E72 can see the error and the file path - i don't want that.

whats happening here?

thanx for your help

 mike
Reply | Threaded
Open this post in threaded view
|

Re: Strange ZEND class loading error with NOKIA E72 phone

Marco Pivetta
What do you currently do before initializing the Autoloader? Could you
expose that? What's the include_path before the error gets triggered?
Marco Pivetta
@Ocramius <http://twitter.com/Ocramius>
http://marco-pivetta.com



On 21 April 2011 17:30, mike55 <[hidden email]> wrote:

> hi,
>
> i've got a very strange class loading error and no idea how to solve it.
>
> the ZF website works fine with desktop PC and with mobile phones.
>
> but theres one exception: with a NOKIA E72 phone and probably other symbian
> phones
> theres a fatal error:
>
> Fatal error: Class "Zend_Validate_Ip" not found in /home..../functions.php
> on line 614
> line 614: $validator = new Zend_Validate_Ip();
>
> functions.php is globally imported and contains general purpose functions
>
> if i exchange Zend_Validate_Ip(); with self-written code, theres no error
> at
> this line.
> but the same error happens with another class on another line
>
> Fatal error: Class "Zend Auth" not found in /home..../functions.php
> on line 790
> line 790:       $auth = Zend_Auth::getInstance();
>
>
> ZF version is 1.11.3
>
> since it works fine with all other devices i've got no idea what to do.
>
> i wrote a userErrorHandler and a exception_handler. both don't catch the
> exeption.
>
> the E72 can see the error and the file path - i don't want that.
>
> whats happening here?
>
> thanx for your help
>
>  mike
>
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Strange-ZEND-class-loading-error-with-NOKIA-E72-phone-tp3466217p3466217.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Strange ZEND class loading error with NOKIA E72 phone

mike55
some pretty common setups are done. nothing special.

own error/exception handlers.

session cookies.
$sessdir = ini_get('session.save_path') . DIRECTORY_SEPARATOR . "xxxx-".THIS_NAME;
if (!is_dir($sessdir)) mkdir($sessdir, 0777);
ini_set('session.save_path', $sessdir);

set time zone.
BBCLONE counter.
header('Content-type: text/html; charset=utf-8');


autoloading is done like this:
require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance();
$loader->setFallbackAutoloader(true);
$loader->registerNamespace('App_');



$include_path   =
        BASE_PATH ."lib" . PATH_SEPARATOR .
        BASE_PATH ."app/modules/X/models" . PATH_SEPARATOR .
        BASE_PATH ."app/modules/Y/models" . PATH_SEPARATOR .
        BASE_PATH ."app/helpers/view" . PATH_SEPARATOR ;
set_include_path( $include_path . get_include_path());