PDA

View Full Version : Topsites Errors...


Chrono Cr@cker
March 15th, 2005, 03:40 AM
I've just installed my Topsite at www.topsites.pokedrome.info

Whenever I try to join It gives me this error
Error!

You forgot to:
The word you entered does not match the image.

Please go back and fix those errors.

I've tried editing and many other things in the Admin Panel but it's not working. Any idea what the problem is?

And also whenever I try changing the skin, this message turns up
Warning: fopen(./config_skins.php): failed to open stream: Permission denied in /home/virtual/pokecool/public_html/topsites/admin.php on line 804

Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/pokecool/public_html/topsites/admin.php on line 805

Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/pokecool/public_html/topsites/admin.php on line 806

So Niftily I just uploaded the stuff in my new skin into the default skin folder and made my skin the default skin.

But I just want to know what is the problem.

~ CC

Rukario
March 15th, 2005, 06:08 AM
check the file permissions - seems it's not able to write/read the 'skin file' reference at lines 804, 805, and 806..

Chrono Cr@cker
March 15th, 2005, 10:44 AM
Do you know what’s the problem with joining, cause my friend tried joining and got the same error message. I even deleted the MySQL Database and recreated it but this problem persists.

I’m not that knowledgable about PHP, so I never even touched the Admin.php file. I just followed the instructions which I read in the manual. Anyway Here is the full code relating to skins and I have underlined Lines 804, 805 & 806. Hope someone is able to find the problem and tell me how to correct it. Another funny thing is that line 805 is a blank line. LOL! Can someone check with their working Topsites file and tell me.


function settings_skins () {
global $CONFIG, $db, $FORM, $LNG, $TMPL;

if (!$FORM['default_skin']) {
$skins_array = array();
$handle = opendir($CONFIG['skins_path']);
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && is_dir($CONFIG['path'].'/skins/'.$file)) {
array_push($skins_array, $file);
}

I Just re-Uploaded the Admin.php file and tried to edit the skins but I got another error this time

Warning: fopen(./config_skins.php): failed to open stream: Permission denied in /home/virtual/pokecool/public_html/topsites/admin.php on line 798

Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/pokecool/public_html/topsites/admin.php on line 799

Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/pokecool/public_html/topsites/admin.php on line 800

These are lines and I have underlined the 3 lines with error

$file = $CONFIG['path']."/config.php";
$fh_config = fopen($file, "w");
fwrite($fh_config, $newconfig);
fclose($fh_config);
$TMPL['content'] .= $LNG['a_s_updated'];
}
~ CC

JDS
March 15th, 2005, 06:32 PM
try chmod'ing your config.php file as 755

Chrono Cr@cker
March 16th, 2005, 04:17 AM
try chmod'ing your config.php file as 755

I don't get you. Could you explain in Layman terms.

~ CC

Geometric-sama
March 16th, 2005, 05:45 AM
http://www.aardvarkind.com/topsitesphp/manual/4.2.2/install.shtml

It says there to CHMOD your two config files to 666. You should be able to find the CHMOD option in your FTP program - if not, which one are you using? We can tell you where it is. Please look at the manual for the script you're installing next time.

EDIT: By the error message, it seems that there's supposed to be an image in there to prevent automated sign-ups (I'm sure you've seen this before, eg. on email signups). This is probably because it's a beta version. You could try using the latest stable version, which is probably 4.2.1 or something.

JDS
March 16th, 2005, 08:27 AM
CHMOD is about as layman as it gets - it details what type of permissions are on the file in question. 755 (or 666 in this case) will make sure your script has access to the file.

scolari
March 16th, 2005, 08:59 AM
chmod is the easiest thing you could possibly do go to googl
e type in chmod and then you program and you will find a help program

Morkula
March 17th, 2005, 04:02 AM
You usually right click the file and then click Properties to CHMOD. That's how it is in most FTP programs. Most of them let you just type in the CHMOD #

Chrono Cr@cker
March 18th, 2005, 01:30 PM
I use FlashFXP. Okay Thanks for the Help
*Reminds myself to CHMOD Confid.php as 755*

Thanks again JA, I'm installing a new version right now.^_^.

~ CC

Greg
March 20th, 2005, 12:06 AM
The beta versions rarely work. And if you can find it, turn off image thingy in the admin panle. Those are annoying.

pokejungle
March 20th, 2005, 02:45 AM
I've gotten that problem with the image too. [I was joining someone's]

v_v I hate those things anyway.

Geometric-sama
March 20th, 2005, 11:07 PM
Hope it works CC. ^^ You know I love to help XD

pokejungle
March 21st, 2005, 12:44 AM
And I didn't mean topsites...I meant those number image things.


Why don't you just find another topsite thing?

Geometric-sama
March 21st, 2005, 11:16 AM
www.itopsites.com is a hosted Aardvark service. Might be a touch easier~

Chrono Cr@cker
March 21st, 2005, 12:00 PM
www.itopsites.com is a hosted Aardvark service. Might be a touch easier~

Nah, I do know PHP and will try out myself. Thanks all for the help. I'm just re-installing my Topsites.

~ CC

Geometric-sama
March 23rd, 2005, 06:27 AM
I take it you got it working since you sent around an advertisement PM - congrats~

Chrono Cr@cker
March 23rd, 2005, 12:16 PM
I take it you got it working since you sent around an advertisement PM - congrats~

Congrats..Ahem..

Yeah, It was fairly easy. I knew CHMODDING but I kinda didn't know it by the name, since FlashFXP has it like "Edit Attributes" and editing the permissions is quite easy.

One last help, how can I remove the "Tricked into Comin" thing.

~ CC

Geometric-sama
March 23rd, 2005, 11:38 PM
Go into your admin control panel into the Settings page and turn off the gateway page.

Chrono Cr@cker
March 24th, 2005, 12:34 PM
Go into your admin control panel into the Settings page and turn off the gateway page.

I love you JA. *Huggles JA*. I must really be blind to miss all this.

~ CC

pokejungle
March 25th, 2005, 05:49 AM
Thanks for removing the Gateway. I hate those v_v;;

You also may want to make images so that it dislpays the site's rank too ^_~

Geometric-sama
March 26th, 2005, 12:48 PM
You're not blind, the software is a little confusing until you get completely used to it ^^