Posted on: 11/25/11 04:11pm
By: drafty
I've recently switched server to PHP5 ... managed to resolve a few issues with website, but have just found this one. When I try to add photos to Media Gallery the error below comes up - although the pic does upload.
If I click on the RSS icon in the gallery I get an XML file - I've turned RSS off in Media Gallery settings and the RSS now seems to be appearing correctly.
Can someone please explain what I need to do to rectify this error .... many thanks in advance
Text Formatted Code
An error has occurred:
2 - fopen(/home/users/uks59246/html/idhsgb.com/web/mediagallery/rss/mgmedia.rss) [function.fopen]: failed to open stream: Permission denied @ /home/users/uks59246/html/idhsgb.com/web/mediagallery/classes/feedcreator.class.php line 725
array(2) {
["filename"]=>
string(69) "/home/users/uks59246/html/idhsgb.com/web/mediagallery/rss/mgmedia.rss"
["displayContents"]=>
int(0)
}
(This text is only displayed to users in the group 'Root')
Re: Media Gallery & PHP5
Posted on: 11/26/11 10:24am
By: ::Ben
Hi,
You can try to create a empty mgmedia.rss file and put it in your mediagallery/rss folder.
Ben
Re: Media Gallery & PHP5
Posted on: 11/27/11 01:45pm
By: drafty
Thanks Ben, tried this .... no difference !!
I've had a look at 'mediagallery/classes/feedcreator.class.php line 725' but cannot see anything to change ? Also all the .rss files in 'mediagallery/rss/' are numbered for the different galleries - i.e. mgmedia000001.rss'; etc .
Clicking the RSS icon in a gallery displays the XML file.
Re: Media Gallery & PHP5
Posted on: 11/27/11 05:20pm
By: ::Ben
Re: Media Gallery & PHP5
Posted on: 11/28/11 06:14am
By: drafty
1.5.0 ... I appreciate it's not the latest, but everything was fine until the server change to PHP5
Re: Media Gallery & PHP5
Posted on: 11/28/11 07:13am
By: ::Ben
I suggest you to update the mediagallery plugin to take advantage of all the bug fixes and new features.
Also, according to Mark the plugin author:
This error is a permission issue. We need to make sure that the web server can write to the public_html/mediagallery/rss/ directory. So you'll either need to change the owner to the same user the web server is running as, or change permissions to allow full read / write access (777).
Ben
Re: Media Gallery & PHP5
Posted on: 11/28/11 07:39am
By: drafty
Hi Ben
Thanks for this ....... I agree that perhaps updating may be my best option. I'll try read/write permissions first
many thanks
Dave