-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSOD on new client create submit #166
Comments
yeh I get that too.. |
This one reminds me of a bug quite a while back... looks like we have a regression.. |
Only seems to happen when the email user tickbox is selected. |
[Tue Jul 29 02:53:10 2014] [error] [client xx.xx.xx.xx] PHP Fatal error: Class 'ui_templateparser' not found in /etc/zpanel/panel/inc/init.inc.php on line 143, referer: http://xx.xx.xx.xx/?module=manage_clients |
This is on a brand new installation on Ubuntu.. I created another user just now, the WSOD page URL is... http://x.x.x.x/?module=manage_clients&action=CreateClient I can't see anything in the logs? Cheers On Tue, Jul 29, 2014 at 12:53 PM, Kevin Andrews [email protected]
Kind Regards Dan Clark 43 Lord Street |
Confirmed, I created a new account on my windows machine, no email send, and works just fine. Only happens if send email is checked. |
Its definitely failing on including a few files from dryden framework... if i manually add the files it doesn't parse the template correctly and i get a load of placeholders instead of text... Must be a bug stopping the autoloading of required files after the post client create action... |
Blimey that was a hard bug to find... had to fire up xdebug in the end. The PHPMailerAutoload class (which is only included when sending emails is taking over the autoloading of classes! We need to register our autoloader differently i think... |
…oading is used even when phpmailer's spl registered autoloader included for sending out emails. See zpanel/zpanelx#166
To fix we need to change: function __autoload($class_name)
{
$path = 'dryden/' . str_replace('_', '/', $class_name) . '.class.php';
if (file_exists($path)) {
require_once $path;
}
} to function __autoload($class_name)
{
$path = 'dryden/' . str_replace('_', '/', $class_name) . '.class.php';
if (file_exists($path)) {
require_once $path;
}
}
spl_autoload_register('__autoload'); in dryden/loader.inc.php |
When you add a new client and hit 'save' the WSOD appears yet the user is still added. Seems to be OS non specific.
The text was updated successfully, but these errors were encountered: