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 22. Nov 2024, 03:16

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  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 19. Jan 2015, 17:40 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hello Michael,

I have been using TWG on our Normanby Local History Group web-site for several years and it has worked well.
I perform off-line maintenance on WAMPserver.

I have just replaced my desktop computer and decided to update all the software to run under Windows 8.1

I installed new version of WAMPserver wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-32b

All has gone well with my upgrade except with TWG 2.3

The installation was successful and I re-applied the changes I had made in various files:-
my_congfig.php,
my_style.php and
config_internal.php

I have also just purchased a TWG licence to show appreciation of your work and support effort (well done!)

All seemed initially to work well but then some problems began.

The galleries all list fine and selecting a gallery shows the thumbnails.
Clicking on a thumbnail displays the photo, captions etc - starting with Ajax.
The Forward button moves on to the next image - and so on.
However at some point the Forward Button moves on but the image does not display.
Captions, headings etc do display.
Clicking on the go-to-First and go-to-Last buttons displays the correct image.

I then used Options to use HTML and everything works fine.

I then used Flash and same problems as with Ajax.

I think the problem is with the Forward and Back buttons in Ajax and Flash.
They invoke Javascript - the others do not.

I cleared the cache and started afresh.

Same result as above - after a short while the problem with Ajax and Flash re-appeared.

I then noticed that several xxxxxxxx.tmp.php files are generated in the cache.
When these are removed the Forward and Back buttons initially behave properly.
But then the problem soon re-appears.

No errors shown in the debug file in TWG Admin.

The TWG Admin Info in Recommended-Settings page are all green except for Display Errors which is red OFF.
Would it be informative to turn it on?
If so - how do I do that?

Any advice on what to look at next would be most welcome.

Regards, Mike Wheatley

PS BTW I found that $show_image_rating=true; appears twice in my_config.php (lines 79 and 87)


Top
 Profile  
 
PostPosted: 19. Jan 2015, 18:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Do you have an url?
this part has not changed for a long time.

Does the image display if you go directly there?

Best, Michael


Top
 Profile  
 
PostPosted: 20. Jan 2015, 01:23 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hello Michael,

Sorry I do not have a url for my off-line desktop development and testing system.
This uses WAMPserver: wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-32b
I installed this latest version just last week under Windows 8.1

If you have not changed this part for a long time it must be something to do with my set up!

The image displays correctly when I click on a thumbnail list for that gallery.
As it does when I click on the go-to-First and go-to-Last buttons.
These use an http via photos.php with the gallery directory and image name.

The Forward and Back buttons use javascript:key_back(); etc.

I've checked the TWG Installation settings again:-
Image Magick Support is Not Available
(but it is Available in our Online site under TWG 1.9 which works)
ffmpeg support is Not Available
ffmpeg video is Not Available

Display Errors is OFF (recommended ON)

Magic Quotes GPC is not shown in 2.3 but is shown in 1.9 as OFF tho recommended to be ON.

What further info should I send you?

Regards, Mike


Top
 Profile  
 
PostPosted: 20. Jan 2015, 19:13 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Can you check if you can reproduce this on my demo somewhere?
And do you get a Javascript error when the problem does happen?

Best, Michael


Top
 Profile  
 
PostPosted: 21. Jan 2015, 22:02 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hi Michael,
I copied your sample photo directories into my TWG.
The behaviour was the same as with my galleries.

I have found that clearing the cache makes the behaviour of a gallery OK for a while.
The Back and Forward buttons work fine.
Then after some use the image fails to display.

Then try on another gallery with same result.

The use of go-to-Start or go-to-End button immediately causes further use of Back & Forward buttons to fail to display. Same with go-to-Overview button.

Definitely related to the Javascript in some way.
(or maybe it's somewhere else...)

It seems to be a gradual problem when using only Back & Forward buttons.
I can work my way forward thru a lot and the go back Ok but eventually going back results in failure to display the image.

All very elusive and wierd.

No Javascript messages are displayed on the browser screen.
Would they be stored in a file somewhere?

As I said the TWG Admin shows Display Errors OFF.
Does that stop Javascript errors showing?

What next?

Regards, Mike


Top
 Profile  
 
PostPosted: 22. Jan 2015, 14:35 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Does it happen if you test on my demo directly?

Javascript messages are only shown in the browser console directly.

Does it happen if you click the buttons very fast or slow?
And does it happen on all browsers?

Best, Michael


Top
 Profile  
 
PostPosted: 23. Jan 2015, 00:37 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hello Michael,

1. I invoked TWG directly from within WAMPserver without any my_config.php and it ran OK
(but of course without my website, etc).
So looks like the problem is with what is in my changes to my_config.php, etc.
(or what is in my website code).

2. Problem happens whatever speed I click the buttons at.

3. In Explorer the same thing happens but the image is "loading" for about 15 to 20 seconds.
That's strange as almost immediate with Firefox!
All programs and images on SSD so should be quick.

I thought it might behave differently if I turned the caching of directories off.
So in (my-config.php) I changed
$cache_dirs = false;
$autoenable_cache=-1;
But continued to build the images into the cache. And same problem.

I copied in the version of my_config.php that works with TWG1.9 (and old version of WAMPserver).
It produced the same problems as I have reported - so must be a change in the code somewhere.
Maybe your's or WAMPserver or versions of PHP etc...

I think I may have lost the original TWG2.3 my_config.php with all my editing and testing.
Can you send me a virgin copy of that file so I can try that out?
And maybe I should introduce my changes section by section and test each change (a looong process tho)
mike.wheatley@virgin.net

Any other ideas?

Regards, Mike


Top
 Profile  
 
PostPosted: 23. Jan 2015, 10:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi. By default my_config.php is empty.

I still don't know why it stops in the middle somewhere.

The cache settings are only for storing the whole directory tree also. Not creating any thumbs and detail images and only do this on the fly is really slow.
Can you check with any developper tool and look on the network tab where you can see the ajax requests. Than there maybe an error is reported if a file cannot be found.

Best, Michael


Top
 Profile  
 
PostPosted: 28. Jan 2015, 00:44 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hello Michael,

I've tried various changes to see if behaviour different - but just the same problem.

I could try running TWG1.9 in my current WAMPserver environment to see if it behaves the same.

Do I need to remove TWG2.3?
Or can I just rename the TWG directory and install TWG1.9?

Regards, Mike

PS I don't think I have any developer tool on my DeskTop.


Top
 Profile  
 
PostPosted: 28. Jan 2015, 11:22 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You can install another version simply in a different directory.

Developer tools are already included in your browser. F12 does open them for most browsers.

Best, Michael


Top
 Profile  
 
PostPosted: 29. Jan 2015, 01:14 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hello Michael,
Thanks for F12 tip - all these years and I didn't know that!

Still using TWG2.3.
Errors are now shown as 404s for the images that should be displayed.

The path listed includes /TinyWebGallery/TinyWebGallery so of course cannot find the 'small' images.

My now minimal my_config.php has following in it:

$php_include=true; /*false;*/
$install_dir = 'TinyWebGallery/'; /* was blank */

and at bottom:
$additional= "\$php_include=true;-NL-\$install_dir=\"TinyWebGallery/\";"; // $additional="";

I do have changes in my_style - colours to transparent etc.
and in config_internal for $iframe_xoffset and yoffset too.

Any ideas?

Regards, Mike Wheatley


Top
 Profile  
 
PostPosted: 29. Jan 2015, 21:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
do you use twg with php include?

Because only than you need $php_include and $install_dir.
Otherwise you should leave the defaults.

Can I check by myself?

Best, Michael


Top
 Profile  
 
PostPosted: 6. Feb 2015, 01:47 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hi Michael,

Yes - as I said earlier I have TWG in a directory beneath my website directory.

I have been doing a lot of trial-and-error experiments - but same problem.
Getting exhausted and lacking ideas...

My latest attempt is to create a directory TWG23 copy of my TinyWebGallery directory.

I have minimized code as much as possible.

So I have gallery.php with:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Normanby LHG - Photo Gallery Test TWG2.3</title>
<meta charset="UTF-8">
<meta name="revised" content="5 Feb 2015" />
</head>
<body>
<div>
<?php include "TWG23/index.php" ?>
</div>
</body>
</html>

And in the v2.3 my_config have only added:-
after the defined...

/* added by MLW */
$php_include=true;
$install_dir="TWG23/";

and at end replaced $additional with:-

//$additional="";
$additional="\$php_include=true;-NL-\$install_dir=\"TWG23/\";";

I reduced the number of picture galleries to three.

And uploaded TWG23 to my website.

I ran this and the result showed - the problem again.

You can run the TWG v1.9 via:-
http://www.normanbyhistorygroup.co.uk/index.php
the Photos link displays the galleries OK.

You can then run TWG2.3 via:
http://www.normanbyhistorygroup.co.uk/gallery.php

As you will see the problems soon arise on the TWG2.3 version.

I thought it was the WAMPserver environment causing the problem.
But this shows it is not - as TWG running on a live server!

Is there something wrong with changes above?

Have you tested recently with TWG installed in a directory under the main directory?

Looks like could be a problem related with the "base directory"?
I saw line 90 in index.php where there's some code:
$basedir_save = $basedir;
$basedir = $install_dir . $basedir;

But couldn't see where $basedir is set nor where $basedir_save is used.
Whereas $basedir is used a lot!

Let me know what else I can do or provide.
I want to help if I can.

Regards, Mike


Top
 Profile  
 
PostPosted: 6. Feb 2015, 10:22 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just checked
http://www.normanbyhistorygroup.co.uk/gallery.php

When should this error arise? I just was there and clicked through the whole gallery and it seems to work find.
$basedir_save is needed at a couple of places where not the relative path is needed.

Best, Michael


Top
 Profile  
 
PostPosted: 6. Feb 2015, 13:18 
Offline

Joined: 19. Jan 2015, 17:21
Posts: 10
Hello Michael,
That's really surprising!

I've just gone to the online gallery and used the first gallery.
Displays image when I click on thumbnail list.
But as soon as I click on the Forward button it fails to display.

When initially accessing a gallery for first time (after cache cleared) it moves Forward and Back with the buttons displaying image OK.
But after I use the First or Last buttons then the use of Forward and Back fails to display the images already displayed. But displays images not previously viewed.
(Thumbnails at bottom are shown OK)

I'm using Firefox 35.0.1 under Windows 8.1.
--------------------------------
Also just tried IE 11.0.9600,17498

This worked correctly!
But when I clicked on Forward or Back buttons there was a 25 seconds delay for loading image.
And several Console messages shown.
Same for clicking on thumnails below.
------------------------------
Went back to my old Desktop running under Windows XP with earlier Firefox and IE8

Firefox had same problem.
IE8 worked OK but with 25secs delay before displaying image
------------------------------

This is all very wierd!!

What happens when you use Firefox?
Which version?

Regards, Mike Wheatley


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 13 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