Gallery Upgrade Issue

Status
Not open for further replies.

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Hi,

Please help a novice. :dunno:

My fantastico was showing that there was an upgrade to the Gallery and I have click on the upgrade link.
The first part of the upgradation was successful.

For the upgrader to finish, I was instructed to visit..

http://www.digitaljit.x10hosting.com/mygallery/

which redirects me to

http://www.digitaljit.x10hosting.com/mygallery/upgrade/index.php

Upon authenticating myself, I am getting the following error at the system check...

-------------------
Upgrade 15% complete
System ChecksPHP Version Success
FILE Directive Success
Safe Mode Success
exec() allowed Success
set_time_limit() allowed Success
Filesystem Operations Failed
Error: Essential filesystem operations are disabled in your PHP by the disabled_functions parameter in php.ini. You must allow these functions before Gallery will run. These functions are missing: readfile.
Memory limit (32Mb) Success
File uploads allowed Success
Maximum upload size (10Mb) Success
Maximum POST size (8Mb) Success
Translation support Warning
Your webserver does not support localization. To enable support for additional languages please instruct your system administrator to reconfigure PHP with the gettext option enabled.
Storage Directory Permissions Warning
Test skipped due to other errors.
Gallery file integrity Warning
Test skipped due to other errors.
-------------------

How do I fix this? I do not know much about Linux :dunno: . So please help or I loose all the images I ahve uploaded in my Gallery. I do not want to loose my Gallery.

Thanks in advance.

digitaljit
(Jitendra A)
 

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
Go through all the gallery files looking for readfile() and replace it with file_get_contents.

So, readfile("test") should become file_get_contents("test")

That should work i think :)
 

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Go through all the gallery files looking for readfile() and replace it with file_get_contents.

So, readfile("test") should become file_get_contents("test")

That should work i think :)

Thanks for the reply. But as I am a novice, could you please tell me which files? FYI, I have a free account and can access my public_html folder via ftp.

Regards
digitaljit
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
Couldnt he just edit the php.ini file to contain that readfile() function?? I have heard places that this could be done, or am I just getting the wrong idea here??

I doubt you would loose all your images, as this is a mere upgrade installation, so it shouldnt effect the files you have stored in the gallery, just the way they are handled by the software!
 
Last edited:

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Couldnt he just edit the php.ini file to contain that readfile() function?? I have heard places that this could be done, or am I just getting the wrong idea here??

I doubt you would loose all your images, as this is a mere upgrade installation, so it shouldnt effect the files you have stored in the gallery, just the way they are handled by the software!


Thanks for the help. But I cannot locate the php.ini file. I have searched the gallery folder but unable to find it.

digitaljit
 

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
then can't you simply create one? don't take my word for this, i am a bit of a PHP novice!

But from reading other posts, I think this might be possible!
 

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
Yes, Zenax is right. There isn't usually gonna be a php.ini file that comes with your script, this is simply stored in the root of the PHP core files. I'm not really familiar with configuring php.ini, but I know you can use it to allow features that were previously disabled to enable them just in the directory you put it in, and its subfolders.
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Backup all your images from w/e folder and make a new one using a diffrent software
 

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Hi Everybody.

Ok. I don't mind if I cannot upgrade. I see that I have a backup of my Gallery ( mygallery.backup.1176036319.tgz ) under the folder /fantastico_backups/

How do I restore this? Can somebody do this for me?

A thank everybody for all the help they have given.

Warm Regards
digitaljit
 
Last edited:

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
Erm, create this in the root of your gallery (In the main folder).

Create a php.ini file, in it put:

Code:
disable_functions=""

That should stop the errors.
 
Last edited:

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Erm, create this in the root of your gallery (In the main folder).

Create a php.ini file, in it put:

Code:
disable_functions=""

That should stop the errors.


===================

I have done as you have instructed but that did not work. Still te same errors....

-------------
System Checks
PHP Version Success
FILE Directive Success
Safe Mode Success
exec() allowed Success
set_time_limit() allowed Success
Filesystem Operations Failed
Error: Essential filesystem operations are disabled in your PHP by the disabled_functions parameter in php.ini. You must allow these functions before Gallery will run. These functions are missing: readfile.
Memory limit (32Mb) Success
File uploads allowed Success
Maximum upload size (10Mb) Success
Maximum POST size (8Mb) Success
Translation support Warning
Your webserver does not support localization. To enable support for additional languages please instruct your system administrator to reconfigure PHP with the gettext option enabled.
Storage Directory Permissions Warning
Test skipped due to other errors.
Gallery file integrity Warning
Test skipped due to other errors.
-------------

Please help me. I do not want to loose my Gallery. It has all my Family and travel images.

Thanks you all for your assistance.

Regards
digitaljit
 

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
Try
Code:
disabled_functions=

or

Code:
disabled_functions=""

One of those should work, i'm doing this off the top of my head at the moment
 

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Hi Everybody

Firstly, let me thanks you for taking the time to help me. My gallery 2.2 upgrader still is giving the errors after all your suggestions.

I had posted at http://gallery.menalto.com regarding this issue ( http://gallery.menalto.com/node/63306#comment-230991 ) and have go the following reply....

----------
valiant


Joined: 2003-01-05
Posts: 25680
Posted: Sun, 2007-04-15 06:48 please ask your webhost to enable the php function "readfile" again. it's pointless to diasable it "for security purposes", since you can emulate readile with 2-3 lines of php code anyway.
and if your webhost argues that we should use some emulation code since it's so easy, ask your webhost if all code should do be done based on the most basic operations. ;)
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage


----------

So it seems, the disabling issue is from the server side and not in my hand. Can the system administrator help me in this matter. I am very greatful to you all for this assistance.

Else the only resort for me is to delete my gallery and re-create it...which is very painful for me.

Thanks again.

digitaljit
 

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Hi Everybody

Thanks for all the assistance. I ahve manually deleted my Gallery and am recreating it.

Warm Regards
digitalj
 
Status
Not open for further replies.
Top