Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.9.0
-
None
-
Operating System: Linux
PHP Version: (please be specific, like '4.4.3' or '5.1.5') 4.4.2
Database and version:
Browser (and version):
Description
When you want to restore f.ex an article from the trash you'll get an PHP warning when you try enter the restore page.
Steps to reproduce
Have xdebug installed in your enviroment.
- Delete f.ex an article in the content structure
- Go to the trash to restore the article.
- Press the edit button on the right side to restore the article (ex: link: /content/restore/84)
here you'll get an PHP warning on the top of the page:
Warning: Invalid argument supplied for foreach() in /var/www/ez390/var/ezwebin_site/cache/template/compiled/restore-bdbf5176ed64d874748d249cc103567a.php on line 64 Call Stack # Function Location 1 {main}() /var/www/ez390/index.php:0 2 ezmodule->run() /var/www/ez390/index.php:768 3 ezprocess::run() /var/www/ez390/lib/ezutils/classes/ezmodule.php:1179 4 ezprocess->runfile() /var/www/ez390/lib/ezutils/classes/ezprocess.php:51 5 include('/var/www/ez390/kernel/content/restore.php') /var/www/ez390/lib/ezutils/classes/ezprocess.php:74 6 eztemplate->fetch() /var/www/ez390/kernel/content/restore.php:253 7 eztemplate->executecompiledtemplate() /var/www/ez390/lib/eztemplate/classes/eztemplate.php:569 8 eztemplatedesignresource->executecompiledtemplate() /var/www/ez390/lib/eztemplate/classes/eztemplate.php:1034 9 eztemplatecompiler::executecompilation() /var/www/ez390/lib/eztemplate/classes/eztemplatefileresource.php:138 10 eztemplatecompiler::executecompilationhelper() /var/www/ez390/lib/eztemplate/classes/eztemplatecompiler.php:415 11 include('/var/www/ez390/var/ezwebin_site/cache/template/compiled/restore-bdbf5176ed64d874748d249cc103567a.php') /var/www/ez390/lib/eztemplate/classes/eztemplatecompiler.php:449