Welcome to Geeklog, Anonymous Monday, October 14 2024 @ 09:11 pm EDT
Geeklog Forums
Error at addition/edit of gallery/contained
Status: offline
Unit
Forum User
Newbie
Registered: 07/21/07
Posts: 2
Hello !
At addition/editing of gallery/contained I receive a following error:
An error has occurred:
2 - chmod() [function.chmod]: Operation not permitted @ /Library/WebServer/Documents/mediagallery/maint/rssfeed.php line 223
array(5) {
["MG_albums"]=>
&array(18) { .... etc
Despite of this all changes are accepted/contained it is added.
How it to correct?
In advance thanks!
At addition/editing of gallery/contained I receive a following error:
An error has occurred:
2 - chmod() [function.chmod]: Operation not permitted @ /Library/WebServer/Documents/mediagallery/maint/rssfeed.php line 223
array(5) {
["MG_albums"]=>
&array(18) { .... etc
Despite of this all changes are accepted/contained it is added.
How it to correct?
In advance thanks!
10
8
Quote
Status: offline
mevans
Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
Unit,
Each time the RSS feed is created / updated in Media Gallery, it attempts to set the file permissions on the RSS file. This is done because some sites were having problems with the permissions being set incorrectly which caused problems later.
On your site, the chmod (changing the file permissions) is failing probably because you either have safe_mode enabled or some type of other restriction in PHP preventing it from working.
The simplest method to solve this is to edit mediagallery/maint/rssfeed.php and on line 223 change it to look like this:
@chmod($_MG_CONF['path_html'] . 'rss/' . $_MG_CONF['rss_feed_name'] . '.rss', 0664);
Also, in the same file around line 156 there is another chmod call, change it to look like this:
@chmod($feedname, 0664);
Save the file and you should be good to go.
Thanks!
Mark
Each time the RSS feed is created / updated in Media Gallery, it attempts to set the file permissions on the RSS file. This is done because some sites were having problems with the permissions being set incorrectly which caused problems later.
On your site, the chmod (changing the file permissions) is failing probably because you either have safe_mode enabled or some type of other restriction in PHP preventing it from working.
The simplest method to solve this is to edit mediagallery/maint/rssfeed.php and on line 223 change it to look like this:
Text Formatted Code
@chmod($_MG_CONF['path_html'] . 'rss/' . $_MG_CONF['rss_feed_name'] . '.rss', 0664);
Also, in the same file around line 156 there is another chmod call, change it to look like this:
Text Formatted Code
@chmod($feedname, 0664);
Save the file and you should be good to go.
Thanks!
Mark
6
6
Quote
All times are EDT. The time is now 09:11 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content