Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Nick
Imagevue Hitman
Posts: 2871
Joined: 02 May 2006, 09:13

PHP issues.

03 May 2006, 10:11

Gonna try summarize the community experience here, the issues with php are actually usually caused by either misconfiguration or absence of any, on 99% of commercial hostings everything works from the start.
Also while it works with PHP5 (it seems), don't think there is need to rush with moving onto new platform for you.

Php does not parse .php files at all, or parses mine own, but not yours.
First means you forgot to install .php usually.
Second means that server parses files having <?php inside only, not <?, to fix that change in php.ini:
Code
; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.

short_open_tag = On
Can't save desciptions (thumbnails not creating, files not uploading)
That common behaviour obviously indicates that php cannot write/create files in certain dirs, actually maybe nowhere, but we care only about /content/ dir and its subdirs.
On *NIX hosting that usually resolved by allowing php or everybody to write in that dir, usually they chmod 777 which allows everybody write there, better way is consult your admin.
On windows sometimes NTFS permissions dissalow writing into directories too. Sometimes ftp upload causes image files to be unreadable even because of groups/permissions settings, actually possibilities are endless.

Everything enabled and allowed, descriptions being saved, files uploaded, but thumbnails not appear
Usually that means GD extension isnt enabled in php.ini, usually php for windows comes with it bundled and enabled, on *NIX you might do some additional manipulations.
If you sure you have it just uncomment the following line in php.ini (in Extensions section):
Code
;extension=gd.so
extension=php_gd2.dll ; Something this way
Also good idea would be to check that this one pointing in correct place:
Code
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/path/to/php/extensions"
Password, limiting access and general guidelines
First of all if you set up, uploaded everything would be a good idea to delete admin folder, just in case.
Passwords and user permission being stored in admin/passwords.php file in this way:
Code
$data['password'] = 'content/dir/';
$data['admin'] = '*';
Basically the word in paratheses is a password by which user is being identified and the 'content/' shows where user can go, the allowed directories and subdirs will begin with that line, '*' means the one identified by password 'admin' will be allowed to change all directories.
If you want restrict specific user to a single dir, you might write full path (beginning with 'content/' because paths are relative to imageVue home dir.
Ofcourse as usual - dont use easy passwords, or even better - delete admin dir, chmod everything back 555 and mod descriptions manually.

Links of interest:
https://www.photo.gallery/support/docs/
 
JBS
Posts: 5
Joined: 11 May 2007, 12:13

24 Jul 2007, 03:04

I have a problem with parsing the PHP but I can't change the php.ini. Is there another way to fix it then change <? to <?php or something like that?
 
User avatar
Nick
Imagevue Hitman
Posts: 2871
Joined: 02 May 2006, 09:13

30 Jul 2007, 05:46

Well, how about search and replace in files?
firedev.com
 
JBS
Posts: 5
Joined: 11 May 2007, 12:13

08 Aug 2007, 15:12

Yes, I have done that and a part of the gallery works. You can select an album but you don't see any thumbnails.
Last edited by JBS on 14 Sep 2007, 07:55, edited 1 time in total.
 
User avatar
Nick
Imagevue Hitman
Posts: 2871
Joined: 02 May 2006, 09:13

12 Sep 2007, 09:19

Please re-download
viewtopic.php?t=2421
firedev.com