Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

block-NG-mostPopular

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
massdigitalmedia

User
User


Joined: Sep 05, 2003
Posts: 33

PostPosted: Mon Sep 08, 2003 12:59 pm    Post subject: block-NG-mostPopular Reply with quote

Having some problems where whenever I add this block, it crashes my site! Do I have to do something special for PHPNuke 6.9? The Gallery works fine. I do have the albums inside the gallery folder. Could that be a problem?

Thanks!
----
Back to top
Offline View user's profile Send private message Send e-mail
AdBot
   Post subject: block-NG-mostPopular  

Back to top
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Sep 08, 2003 1:15 pm    Post subject: Reply with quote

No problem with your albums folder. 'Crashes' how? Stops anything after the block from showing? Sometimes there is an issue with block being placed on the left. Have you tried moving it to the right? Can you leave the site active with the problem so we can see - or take a snapshot and place a link?
_________________
"The only difference between me and a madman is that I'm not mad."
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
massdigitalmedia

User
User


Joined: Sep 05, 2003
Posts: 33

PostPosted: Mon Sep 08, 2003 1:21 pm    Post subject: Reply with quote

Well, I tried adding the block on the right, and when I do, the site dies. can't get to it at all. I haven't tried it on the left yet. There is no snapshot , because nothing happens when I add this block.

http://www.roadstargallery.com/index.php
_________________
THANKS!
Scott
Back to top
Offline View user's profile Send private message Send e-mail
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Sep 08, 2003 1:51 pm    Post subject: Reply with quote

Check in your ALBUMS directory for 'photo_list.cache'. If it doesn't exist try the following

Find this in the BLOCK:

Code: ›
$rebuild = 0;
if(fs_file_exists(ALBUMCACHE)) {
   $stat = fs_stat(ALBUMCACHE);
   $mtime = $stat[9];
   if (time() - $mtime > EXPIRE_TIME) {
      $rebuild = 1;
   }
}


Replace with:

Code: ›
$rebuild = 1;
if(fs_file_exists(ALBUMCACHE)) {
   $stat = fs_stat(ALBUMCACHE);
   $mtime = $stat[9];
   if (time() - $mtime > EXPIRE_TIME) {
      $rebuild = 1;
   }
}

_________________
"The only difference between me and a madman is that I'm not mad."
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
massdigitalmedia

User
User


Joined: Sep 05, 2003
Posts: 33

PostPosted: Mon Sep 08, 2003 2:01 pm    Post subject: Reply with quote

Well, I tried that, and the same thing happened. Is there a random image block that will work instead?

Thanks!
_________________
THANKS!
Scott
Back to top
Offline View user's profile Send private message Send e-mail
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Sep 08, 2003 2:03 pm    Post subject: Reply with quote

Did the 'photo_list.cache' exist?

Try the NG-Random-Block in Downloads. You may have the same problem with that if your server doesn't generate the cache file
_________________
"The only difference between me and a madman is that I'm not mad."
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
massdigitalmedia

User
User


Joined: Sep 05, 2003
Posts: 33

PostPosted: Mon Sep 08, 2003 2:08 pm    Post subject: Reply with quote

no, there was no cache file. I own the server, so is there a way around it?

Scott
Back to top
Offline View user's profile Send private message Send e-mail
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Sep 08, 2003 2:15 pm    Post subject: Reply with quote

If you have telnet/ssh access, try this:

cd /path/to/your/albums/
sudo touch photo_list.cache
sudo chmod 777 photo_list.cache

That creates a blank file 'photo_list.cache'

or ftp:

Create an empty file called 'photo_list.cache'
Upload to albums directory, chmod 777

Follow the instructions -- as above (rebuild = 1)
_________________
"The only difference between me and a madman is that I'm not mad."
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
strobeyprobey

Beginner
Beginner


Joined: Jul 14, 2003
Posts: 4

PostPosted: Tue Sep 09, 2003 4:08 pm    Post subject: Re: block-NG-mostPopular Reply with quote

That touch command and setting the rebuild to 1 helped me out. Otherwise my site appeared frozen. It wasn't actually frozen, however, it was transfering mass amounts of data. When I accessed it locally from Lynx I stopped retrieving the home page when it exceeded 20 MB transfered!

BTW, the cache rebuild took my Nuke 6.8 homepage 12.45 seconds to generate down from the normal 0.7 seconds. I run a PII-300MHz w/384 MB RAM.
Back to top
Offline View user's profile Send private message
massdigitalmedia

User
User


Joined: Sep 05, 2003
Posts: 33

PostPosted: Sat Sep 13, 2003 10:08 am    Post subject: Reply with quote

No dice on that either...it's just like it's hanging there...I have it disabled for now. the cache file is getting built now, and I got the random image block working just fine.

Thanks!

Scott
http://www.roadstargallery.com
_________________
THANKS!
Scott
Back to top
Offline View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
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 vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia