Viernes, 18 Abril 2014 10:41
beggarly

error in saving css file in joomla backend

Report Xmap bugs on this forum.

error in saving css file in joomla backend

Postby csommer » Fri Apr 18, 2008 2:14 pm

Haven't found any posts on this, but I'm having a minor problem in saving changes to the css file using the user-interface in the backend. It doesn't save changes to the file, I have to edit the file in the folders directly to make changes. Every time I save any settings in the backend, even if no changes were attempted in the css I get the following message in my cPanel error log:

[error] PHP Warning: fileperms() [<a href='function.fileperms'>function.fileperms</a>]: stat failed for /home/myUserName/public_html/pathToJoomlaRoot/css/xmap.css in /home/myUserName/public_html/pathToJoomlaRoot/administrator/components/com_xmap/classes/XmapAdmin.php on line 98

I tried changing the chmod settings of the css file to 777, just to check, but it didnt help. I see also that the file has not been assigned an owner, I know that this is sometimes an issue.

Things seem to work fine, as I can work around this, just would be nice to get to the bottom of this minor issue.

I'm using Xmap 1.1 on Joomla 1.0.15.
csommer
Junior Boarder
Junior Boarder
 
Posts: 23
Joined: Sun Apr 13, 2008 11:26 pm

Re:error in saving css file in joomla backend

Postby guilleva » Sat Apr 19, 2008 4:32 pm

Hi, thanks for reporting that! I have found the problem, in the file /administrator/components/com_xmap/classes/XmapAdmin.php replace:
Code: Select all

$file = $mosConfig_absolute_path .'/css/xmap.css';

by this
Code: Select all

$file = $mosConfig_absolute_path .'/components/com_xmap/css/xmap.css';
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re:error in saving css file in joomla backend

Postby csommer » Sun Apr 20, 2008 9:39 am

This has solved the problem: no more error messages and am able to edit the css file in the Joomla backend.

I hadn't picked up on the discrepancy between the path in the error message and the actual path to the css file: seems pretty obvious now.

Thank you for the support and a great component!
csommer
Junior Boarder
Junior Boarder
 
Posts: 23
Joined: Sun Apr 13, 2008 11:26 pm

Re:error in saving css file in joomla backend

Postby mangotti » Mon Apr 21, 2008 11:39 am

I don't even see the first line of code in this file.
Last edited by mangotti on Thu Jan 01, 1970 12:00 am, edited 65535 times in total.
Reason: 1
mangotti
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Mon Apr 21, 2008 12:32 pm


Return to Bugs



Who is online

Users browsing this forum: No registered users and 2 guests