Calling non-static method Smarty_Internal_Debug::display_debug #817

Open
opened 2026-10-05 00:18:55 +02:00 by adam · 2 comments
Owner

There is a static call to Smarty_Internal_Debug::display_debug on template.class.php file, line 586.

It rises an error and it prevent showing smarty debug popup when logged in as admin.

There is a static call to `Smarty_Internal_Debug::display_debug` on `template.class.php` file, line 586. It rises an error and it prevent showing smarty debug popup when logged in as admin. <!-- github-sync-id:350052077 -->
Author
Owner

Hi Miceno,
I had the same issue.
Try this as a workaround (backslash on Windows):

//Smarty_Internal_Debug::display_debug($this->smarty); $this->smarty->display(dirname(__FILE__) . "\smarty\libs\debug.tpl"); // should better use $debug_tpl or $SMARTY_DIR ?

Hi Miceno, I had the same issue. Try this as a workaround (backslash on Windows): ` //Smarty_Internal_Debug::display_debug($this->smarty); $this->smarty->display(dirname(__FILE__) . "\smarty\libs\debug.tpl"); // should better use $debug_tpl or $SMARTY_DIR ? ` <!-- github-comment-id:420568117 -->
Author
Owner

Why was the pull request never merged? I still get the same error...

Why was the pull request never merged? I still get the same error... <!-- github-comment-id:1369287583 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#817