Hi
In my WordPress/Enfold installation it happens that the options
aviaAsset_avia-head-scripts and
aviaAsset_avia-footer-scripts are running out of max length of mySQL
data packet length and producing a long error message in php error log.
This is because asset-manager fails to generate a file and adds an error
message like this many many times:
\”error-generating-file\”;s:66:\”avia-head-scripts-906ac143e1c1dde8fb42168b7c7f71e4—5ecc2b3221d40\”;s:21:\”error-generating-file\”;s:66:\”avia-head-scripts-906ac143e1c1dde8fb42168b7c7f71e4—5ecc2b33202a0\”;s:21:\”error-generating-file\”;s:66:\”avia-head-scripts-906ac143e1c1dde8fb42168b7c7f71e4—5ecc2b37b03f1
The failure happens in
wp-content\themes\enfold\config-templatebuilder\avia-template-builder\php\asset-manager.class.php
on Line 575:
if( ! $file_created)
This is because the function was called with an empty script (
data[‘remove’] in Line 519 is an empty array or no array), $content is
always empty and therefore $file_created never gets true, because of
if(trim($content) != “”) in line 536 is false.
I suggest to change line 575 to
if( ! $file_created && trim($content) != “”)
This helped in my case.
Thanks
Hey Peter,
Thank you for bringing this up. We will forward it to our devs.
Best regards,
Victoria