You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the AutoLoad.php located here:
/path2website/classes/Esendex/AutoLoad.php
and get "Uncaught Error: Class 'Esendex\Model\DispatchMessage' not found"
this is caused in AutoLoad.php by the line $path = ESENDEX_HOME . self::SPLIT_DIR . implode(self::SPLIT_DIR, $parts) . '.php';
creating a path to the class looking like this:
/path2website/classes/Esendex/Esendex/Model/DispatchMessage.php
Note the double /Esendex/ in the path.
I fixed it by removing the /Esendex from the static var ESENDEX_HOME by changing the define statement to this: define('ESENDEX_HOME', str_replace(DIRECTORY_SEPARATOR."Esendex","", dirname(__FILE__)));
which then corrects the subsequent $path= assignment to
/path2website/classes/Esendex/Model/DispatchMessage.php
and all is well.
The text was updated successfully, but these errors were encountered:
I have the AutoLoad.php located here:
/path2website/classes/Esendex/AutoLoad.php
and get "Uncaught Error: Class 'Esendex\Model\DispatchMessage' not found"
this is caused in AutoLoad.php by the line
$path = ESENDEX_HOME . self::SPLIT_DIR . implode(self::SPLIT_DIR, $parts) . '.php';
creating a path to the class looking like this:
/path2website/classes/Esendex/Esendex/Model/DispatchMessage.php
Note the double /Esendex/ in the path.
I fixed it by removing the /Esendex from the static var ESENDEX_HOME by changing the define statement to this:
define('ESENDEX_HOME', str_replace(DIRECTORY_SEPARATOR."Esendex","", dirname(__FILE__)));
which then corrects the subsequent $path= assignment to
/path2website/classes/Esendex/Model/DispatchMessage.php
and all is well.
The text was updated successfully, but these errors were encountered: