Skip to content
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

[3.10] on PHP 8.0 Back-end: Call to undefined function Joomla\CMS\Filesystem\set_time_limit() #35196

Closed
pe7er opened this issue Aug 17, 2021 · 11 comments

Comments

@pe7er
Copy link
Contributor

pe7er commented Aug 17, 2021

Steps to reproduce the issue

Install a Joomla 3.10 on PHP 8.0.8.
After login into the /administrator/ I get the error:

0 Call to undefined function Joomla\CMS\Filesystem\set_time_limit()

And with Debug mode on:

0 Call to undefined function Joomla\CMS\Filesystem\set_time_limit()
/home/ [removed] /libraries/src/Filesystem/Folder.php:612

Call stack
--
# | Function | Location
1 | () | JROOT/libraries/src/Filesystem/Folder.php:612
2 | Joomla\CMS\Filesystem\Folder::_items() | JROOT/libraries/src/Filesystem/Folder.php:532
3 | Joomla\CMS\Filesystem\Folder::files() | JROOT/libraries/fof/integration/joomla/filesystem/filesystem.php:147
4 | FOFIntegrationJoomlaFilesystem->folderFiles() | JROOT/libraries/fof/config/provider.php:190
5 | FOFConfigProvider->getDomains() | JROOT/libraries/fof/config/provider.php:84
6 | FOFConfigProvider->get() | JROOT/libraries/fof/model/model.php:668
7 | FOFModel->__construct() | JROOT/libraries/fof/model/model.php:349
8 | FOFModel::getAnInstance() | JROOT/libraries/fof/model/model.php:439
9 | FOFModel::getTmpInstance() | JROOT/administrator/components/com_cpanel/views/cpanel/view.html.php:52
10 | CpanelViewCpanel->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:664
11 | Joomla\CMS\MVC\Controller\BaseController->display() | JROOT/libraries/src/MVC/Controller/BaseController.php:702
12 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/administrator/components/com_cpanel/cpanel.php:15
13 | require_once() | JROOT/libraries/src/Component/ComponentHelper.php:402
14 | Joomla\CMS\Component\ComponentHelper::executeComponent() | JROOT/libraries/src/Component/ComponentHelper.php:377
15 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:101
16 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:159
17 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:225
18 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/index.php:51

System information (as much as possible)

php: Linux [removed] 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64
dbserver: mysql
dbversion: 5.5.5-10.4.21-MariaDB-1:10.4.21+maria~focal-log
dbcollation: utf8_general_ci
dbconnectioncollation: utf8mb4_general_ci
phpversion: 8.0.8
server: nginx/1.19.3
sapi_name: fpm-fcgi
version: Joomla! 3.10.0 Stable [ Daraja ] 14-August-2021 11:55 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
useragent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

On the site I have Akeeba Backup + JCE Pro + Yoursites + D2 Content Pro.
However, after disabling all non-core Plugins the error remains....

@brianteeman
Copy link
Contributor

/home/ [removed] /libraries/src/Filesystem/Folder.php:612

This file was last updated in november

@pe7er
Copy link
Contributor Author

pe7er commented Aug 17, 2021

Ok. I'll test again with a clean Joomla 3.9.10 on another PHP 8 environment.

@brianteeman
Copy link
Contributor

image

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@pe7er
Copy link
Contributor Author

pe7er commented Aug 18, 2021

Thank you both for your answers @brianteeman + @PhilETaylor
set_time_limit had indeed been disabled.
I've removed it from the disabled functions and the error has been gone.

@pe7er pe7er closed this as completed Aug 18, 2021
@sunnydrake
Copy link

stumped on same hoster issue with php 8.1 .. in akeeba following code is used to check for function
if (function_exists('set_time_limit'))
{
set_time_limit(0);
}


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35196.

@PhilETaylor

This comment was marked as abuse.

@sunnydrake
Copy link

also according to code this function is disabled in safe_mode


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35196.

@PhilETaylor

This comment was marked as abuse.

@sunnydrake
Copy link

		if (function_exists('ini_get') && function_exists('set_time_limit'))
		{
			if (!ini_get('safe_mode'))
			{
				@set_time_limit(0);
			}
		}<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="https://issues.joomla.org/tracker/joomla-cms/35196">issues.joomla.org/tracker/joomla-cms/35196</a>.</sub>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants