style.css getting deleted

Posted in: Newsmag
Post count: 9

The CSS file /data/s293153/dom13768/dom13768/wp-content/themes/Newsmag/style.css disappears periodically.

We checked with our hosting partner, and they’ve isolated the problem to td_compile_less_file() function :-

Do you have a workaround for this this ?

td_compile_less_file() function defined in wp-content/themes/Newsmag/td_less_style.css.php which appears to be used to recompile the main style.css stylesheet from the .less input/source files.

Unfortunately it appears that the function first deletes style.css at which point any failure during the compilation will result in the file missing. From what I can tell the function would be failing as it’s using the proc_open() function which we disable for security reason, but even then it

a) tries to invoke what would appear to be a Windows format executable which wouldn’t work on a Linux server and
b) the specified executable file is not even present at the location where the function expects it.

Not being familiar with the theme it isn’t immediately cleared how the compilation is triggered so I would recommend checking with the theme author/support theme to confirm what specific action causes the re-compilation, and possibly speak with them to see if they can modify the function to remove style.css only after a re-compilation has been attempted and confirmed successful, but otherwise leave it in place.

Post count: 6535

Hi

The theme use the less files to complies the css only when it’s on dev mode but when it’s delivered to the users runs on deploy mode. Please make sure that the theme runs on deploy mode on your server: http://screencast.com/t/H1n7R3WOSOVB
Let us know how it goes and if you still can’t manage to solve this issues address us via email at contact@tagdiv.com and provide ftp access and wp-admin so we can take a closer look at this issue.

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.