Welcome to Geeklog Saturday, March 28 2020 @ 11:58 pm EDT

Geeklog Forums

Error at addition/edit of gallery/contained


Status: offline

Unit

Forum User
Newbie
Registered: 21/07/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!
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 08/02/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:

PHP 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:

PHP Formatted Code

    @chmod($feedname, 0664);
 


Save the file and you should be good to go.

Thanks!
Mark
 Quote

Status: offline

Unit

Forum User
Newbie
Registered: 21/07/07
Posts: 2
Has not helped - I commented, for a while, these line.
 Quote

All times are EDT. The time is now 11:58 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