Cache Cleaner

Waarschuwing Verwijderen regularlabs_php_ mislukt

10 months 1 week ago #73301

Hans Kuijpers's Avatar Hans Kuijpers

We get a warning on the frontend of the website with the following text:

---
Waarschuwing
Verwijderen regularlabs_php_<lot of characters> mislukt
---

What is this message, where does it come from and how do we solve it?

10 months 1 week ago #73307

Peter van Westen's Avatar Peter van Westen Admin

The php assignments will create temporary files to be able to execute the php code.
After it has executed it, it removed the temporary file.
For some reason, your server doesn't like this. Maybe an issue with write permissions on the tmp folder?

10 months 1 week ago #73308

Peter van Westen's Avatar Peter van Westen Admin

In file libraries/regularlabs/src/Condition/Php.php
Try changing:

		if ( ! defined('JDEBUG') || ! JDEBUG)
		{
			JFile::delete($temp_file);
		}
to:
		if ( ! defined('JDEBUG') || ! JDEBUG)
		{
			@chmod($temp_file, 0777);
			@unlink($temp_file);
		}