?
avatar ReLater
ReLater
7 Oct 2018

Steps to reproduce the issue

  • Use XAMPP(!) with nightly build of today Joomla 4 Sunday, 07 October 2018 02:00:37 UTC
  • Go to template manager:
    administrator/index.php?option=com_templates&view=templates&client_id=0
  • Open Casseiopaia template and try to edit a css file.
  • After Save or Save&Close: empty grey component area.
  • Edits not saved.
avatar ReLater ReLater - open - 7 Oct 2018
avatar joomla-cms-bot joomla-cms-bot - change - 7 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Oct 2018
avatar brianteeman
brianteeman - comment - 7 Oct 2018

what php version?

avatar ReLater
ReLater - comment - 7 Oct 2018

The error occurs here: https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_templates/Controller/TemplateController.php#L315

e.g. a file /css/user.css is saved:
$data['filename'] is \css\user.css on WINDOWS
but
end($explodeArray) is /css/user.css

So $data['filename'] != end($explodeArray) is always trueand the save method returns false.

BUT: I wonder why we don't see the error message then.

what php version?

Tested with XAMPP 7.2.7/win10 64 and another user tested with XAMPP 7.2.9/win?

avatar ReLater ReLater - change - 7 Oct 2018
Title
[4.0] XAMPP727. Template Manager. Saving of files fails.
[4.0] XAMPP 7.2.7/9 Windows. Template Manager. Saving of files fails.
avatar ReLater ReLater - edited - 7 Oct 2018
avatar ReLater ReLater - change - 7 Oct 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-10-07 21:03:46
Closed_By ReLater
avatar ReLater ReLater - close - 7 Oct 2018
avatar ReLater
ReLater - comment - 7 Oct 2018

Please test pr #22539

Add a Comment

Login with GitHub to post a comment