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, 11:35

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  [ 7 posts ] 
Author Message
 Post subject: error Division by zero
PostPosted: 5. Jun 2009, 01:17 
Offline

Joined: 28. May 2009, 20:51
Posts: 27
I get this error 06.03.2009 2:35:00 (en) - ERROR 2 in /photogallary/inc/index.inc.php, line 453: Division by zero
line 453 is if ( (abs($twg_offset - $twg_offset_) .............
Code:
            echo "<a class='sel twg_bold' href='#'>" . ($i + 1) . "</a>";
            $trenner = true;
         } else {
           if ( (abs($twg_offset - $twg_offset_) < ($paging_num * $thumbnails)) || ($i == $numpages-1) || ($i == 0) || (($i % $paging_steps) == $paging_steps-1)) {
             printf("<a href='%s?twg_album=%s&amp;twg_offset=%s%s'>%s</a>", $_SERVER['PHP_SELF'], $album_enc, $twg_offset_, $twg_standalone, $i + 1);
             $trenner = true;


Top
 Profile  
 
 Post subject:
PostPosted: 5. Jun 2009, 07:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
have you set paging steps to 0 ?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 5. Jun 2009, 07:41 
Offline

Joined: 28. May 2009, 20:51
Posts: 27
Not that I know of


Top
 Profile  
 
 Post subject:
PostPosted: 5. Jun 2009, 08:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
but then there is no division. If it only happend once ignore it.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 5. Jun 2009, 08:32 
Offline

Joined: 28. May 2009, 20:51
Posts: 27
Iclear that error from bug report and now I get these

06.03.2009 2:35:00 (en) - ERROR 2 in /photogallary/inc/index.inc.php, line 453: Division by zero
06.05.2009 8:11:53 (en) - ERROR 8 in /photogallary/inc/counter.inc.php, line 72: Undefined offset: 1


Top
 Profile  
 
 Post subject:
PostPosted: 5. Jun 2009, 08:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you clear the debug file and get an error that is 2 days old? (06.03.2009 2:35:00)

and at line 72 there is no code that can produce this error.

Which version are you using?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 5. Jun 2009, 11:05 
Offline

Joined: 28. May 2009, 20:51
Posts: 27
I deleted the hole thing and uploaded again I will post if errors show again
TWG Admin 1.7.7


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 77 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