WebPagetest Forums
WPT Monitor - Printable Version

+- WebPagetest Forums (http://www.webpagetest.org/forums)
+-- Forum: WPT Monitor (/forumdisplay.php?fid=22)
+--- Forum: General Discussion (/forumdisplay.php?fid=21)
+--- Thread: WPT Monitor (/showthread.php?tid=395)

Pages: 1 2 3 4 5 6 7 8 9


RE: WPT Monitor - asperkins - 03-26-2011 01:08 AM

Sorry for the late reply. I am able to recreate this issue and will fix it for 1.0.0 release. What I did notice is that even tho it throws this error it appears that everything does get initialized properly, so your install should work.

The "Notice" entries in the log file are because of the php log level. They do not affect the actual performance of the code.


RE: WPT Monitor - mydigitalvoid - 03-31-2011 06:36 AM

(03-17-2011 12:39 PM)gyuseong Wrote:  When I complete install.php form and click submit button, following error occurs

[Thu Mar 17 11:31:29 2011] [error] [client 10.OO.OO.OOO] PHP Fatal error: Uncaught exception 'SmartyException' with message '{include_php} is deprecated, set allow_php_tag = true to enable' in /home/frontend/ROOT/wpt/www/wptmonitor/lib/Smarty-3.0.4/libs/...

This is probably a problem with going from Smarty 2 to Smarty 3. The fix here is to edit utils.inc and look for this code snip-it

Code:
function displayError($message = "You are not authorized to perform this operation") {
  $smarty = new Smarty;

After that add

Code:
$smarty->allow_php_tag = true;

So it looks like

Code:
function displayError($message = "You are not authorized to perform this operation") {
  $smarty = new Smarty;
  $smarty->allow_php_tag = true;
  $smarty->assign('errorMessage', $message);
  $smarty->display('error.tpl');
  exit;
}

That should fix it for you.

-Dv


RE: WPT Monitor - asperkins - 03-31-2011 06:49 AM

Thank you for the tip. I'll update trunk with this fix.