Fully Compacting HTML and PHP
Posted by: Admin on 18th March 2020 04:41:09.
Posted in Category: Using Mobiclean Pro
An issue has been identified when using the fully compact HTML with some 3rd party mail and other scripts (not those from RichoSoft), they place their scripts in the root folder (not good practice). When Mobiclean cleans these, because of code issues, the compacting stops the code executing. This is due to comments in the files and incorrectly terminated if statements.
So I advise not to use the Fully Compact on PHP files whilst I build solution to this issue.
A new version of Mobiclean will be released on the auto-update when it is available, so in the meantime, do not use fully compact on PHP files. Your settings should therefore look like this in the PRO Options page:
The Tidy Only option should work correctly with PHP pages.
However there is one other issue with Witsec's mail.php file, in as much that it has some code that matches the string used to update the HTML tag and text is not enclosed in apostrophes (') but in quotes ("), this causes a conflict when adding language tags via the options on the PRO Options page and as this mail.php file is in the root folder it gets processed with normal pages:
So if using Witsec's mail form I suggest the following workaround whilst I develop a solution for this:
- Process your clean as usual in Mobiclean.
- Following the clean, copy the original mail.php in your Mobirise published folder into your Processed folder and then upload your files as normal.
- The mail form should then work correctly.
No Comments Yet! - Be the first to comment.