Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 13:39

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: upgrade to 1.7.2
PostPosted: 8. May 2008, 05:16 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
Hi Michael !

I've just upgraded to 1.7.2 and something I can't understand is happening.

I copied the changes I had made in my_config.php to the new my_config.php-

In my old version of TWG (1.7.0) I was introducing in the my_config file the following lines:

Code:
session_name("mysess");
start_session();
$basedir = "../".$_SESSION["var"]."/pictures";


This worked OK.


Now, with version 1.7.2, I'm getting the message:

Quote:
The album '' cannot be found and is maybe not available anymore.


The directory indeed exists, and has photos in it.


Aware of this, I print out the directory TWG is looking for, doing:

Code:
session_name("mysess");
start_session();

ECHO $basedir = "../".$_SESSION["var"]."/pictures";
exit;


This indeed prints the correct directory, where the previous 1.7.0 version founded and showed the photos.

More strange is that just after doing that, when I reopen the gallery it can find the photos in the directory. But just once, the second time I open the gallery I get the same error message.

I tried turning the cache off, with no results...



So what can I be doing wrong here ? :roll:


Hope you can help ! : )


Thanks,

siran


Top
 Profile  
 
 Post subject:
PostPosted: 8. May 2008, 12:27 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the session stuff should not be needed anymore. I changed the order - now the session is started before config.php is read.

remove you session stuff and try without.
And why do you use your own session name? you would have to set this in startsession.inc.php and in the backend that it works fine everywhere.

/Michael


Top
 Profile  
 
PostPosted: 8. May 2008, 13:39 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
Hi Michael !

The thought the error was completely solved after not putting my own session name, and not starting the session it in my_config.php !

It was solved in the sense that it opens the album. BUT I get the following error:

Quote:
FEHLER: File ..//xml/Prueba_image_counter.xml can not be created. If this error occurs more than once please check your directory permissions!


If you see carefully, in the path there is a "//". In between the slashes goes the name of the directory I get from the SESSION. So I guess there is some problem with the SESSION when writing the counter file, and it is not accessing it correctly.

I tried starting the SESSION (phpsessid) in my_config.php, but I keep getting the same fehler.



Hope you can help with this : )


siran



The directory permission are set for as 0770, the owner being 'apache'. The gallery should see permission like being 7, rwx.

Moreover I tried 0777, but I keep getting the same fehler message.

I have cache turned off, I'm working with version 1.7.2.


Hope you can help : )

siran


Top
 Profile  
 
 Post subject:
PostPosted: 8. May 2008, 14:11 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
if you remove your change everything works?

It seems you somewhere modify the xml path not properly.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 8. May 2008, 14:24 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
Sorry, awfully dumb mistake on my part... I didn't update $install_dir !

Sorry for that ! : s

siran


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy