Support

Akeeba Backup for Joomla!

#33907 PHP Warning: preg_match(): Delimiter must not be alphanumeric or backslash in Base.php line 138

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Sunday, 15 November 2020 20:17 CST

4FootyFans

I have at last located the file which has been growing at an alarming rate over past months and explains why our backup has also been growing.

The file is

/public_html/cli/error_log

and contains 000s of the same entry due to our backup being performed twice daily. It is currently 1.35Gb and started May 2020.

The message is:

[15-Oct-2020 04:16:08 UTC] PHP Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/xxxxxx/public_html/administrator/components/com_akeeba/BackupEngine/Filter/Base.php on line 138

Base.php lines 137/138 are:

137          // Normal PCRE
138          if (preg_match($regex, $test))

Kindly advise a fix for this or whether I need to prevent php warnings from being produced.

TIA

 

 

 

nicholas
Akeeba Staff
Manager

This error would occur if you have entered a wrong regular expression in a RegEx database or file filter yourself.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

4FootyFans

Sorry, how would I find the wrong expression or filter?

 

Do you mean if a filtered exclusion file or directory doesn't exist?

nicholas
Akeeba Staff
Manager

No, I am talking about regular expression filters that you have entered yourself. Regular filters do not use regular expressions; they are item lists. The code location you gave me corresponds to a regular expression filter. I can't tell you which filter because the information you gave me doesn't tell me that.

Go to Akeeba Backup.

Select the backup profile you are using. The page reloads.

Scroll all the way down.

There are two buttons. "RegEx Files and Directories Exclusion" and "RegEx Database Tables Exclusion".

One or more of the regular expressions you have entered in either (or both...)  of these places is malformed. Namely, it does not have delimiters. If you are not sure what the format should be like just remove them and use the regular filters to select which files, folders and databases to exclude.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!