logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

my sql error when page loads
disappears after refresh

Version: 4.1.15
Example URL: http://www.hifalls.net/


Page: 1 2

my sql error when page loads
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
1 of 1 people found this post helpful
Posted 02/05/08 - 09:14 PM:

quote post
#16
Actually, you've been helping my partner with that problem. She's been working on a different site than I am which is on a
completely different server & different host. Although, I just checked and I'm running mysql 5 and php 4.3.11 and I haven't
had nearly any of the problems she's had and vice versa.

Now, here's a thought. Just a thought so if it sounds like it's coming from left field it actually is. If it's the cron table that's
causing these problems and since I didn't create any new crons and you said there are only 3 to begin with is there any way for me to
completely remove them and then basically recreate the table?

Yes, I know I'm grabbing at straws here, but at least I tried.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5510
Posted 02/06/08 - 10:23 AM:
quote post
#17
That's an odd combination, MySQL 5 was released long after PHP 4.3 so its support for it may have issues. I don't think the mysqli extension existed back then, which is intended for use with MySQL 4.1+.

Removing crons is easy, just use the crons page.
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 02/10/08 - 09:59 AM:
quote post
#18
That fixed it! I removed all the crons and haven't had a single error.

I even put all the categories back on one page to try seeing if it would make the error reappear and
it's been error free ever since. Hopefully, removing the crons won't eventually give me residual
problems, but I guess I'll deal with those if they ever happen.

Thanks!

Edited by hai on 02/10/08 - 10:02 AM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5510
Posted 02/11/08 - 06:05 PM:
quote post
#19
Removing the crons will cause all sorts of features not work, emails to not get sent, etc etc. Which cron do you have a problem with?
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 02/11/08 - 06:49 PM:
quote post
#20
None right now that I know of. Since I'm not sure what exactly those crons controlled I won't know until I notice
something not working as it should or someone complains. As of now the site works and loads like a dream.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5510
Posted 02/13/08 - 11:14 AM:
quote post
#21
You may never notice, but your users will, and they'll just go away without complaining. All expirations, sponsorships, daily digests, static page exports, email log trimming, autopromotions, birthday emails, cache size management, letter rotation sorting, temporary hits, and automated backups are 100% dead.

Even the resetting of failed login attempts is dead, so the first person to mistype a login enough times will be effectively banned forever and you'll have long forgotten why. Old attachments that somebody decided not to upload a year ago will continue showing on the 'suggest' page. Suspended users will never get unspuspended.

I guess you like dreaming nightmares.


hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 02/14/08 - 07:48 AM:
quote post
#22
Hey, sometime you just have to live life on the edge!

Plus it's not really a revenue generating site, basically a hobby site for my husband and a place for us to
have access his music collection. Obviously, I don't want to annoy any users whether they're our friends
or people stumbling across the site, but my options are limited.

Anyway, thanks for that list of items that the crons affect at least I now know what to look for. I've actually
started re-adding them one at a time to see if it's just one causing the error or just the combination
of having all three.

If I find anything out I'll keep you updated.
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 03/06/08 - 07:27 PM:
quote post
#23
Well, after running a bunch of different scenarios I figured out that there are
slightly more cron jobs than the site can take. It loads fine with 2 crons, but
as soon as I add the third (whichever one that happens to be) it starts giving
me errors. So I ended up trying to combine 2 of the crons into 1 file just as a
test, but that gave me errors as well.

Finally, I looked through the php files, and commented out any jobs that I am not
using. For example, the job that checks for expired links. None of my links will
ever expire so I commented that one out as well as a couple others like member
birthdays as another example. So far it looks like that did the trick. I'm keeping
my fingers crossed.

Anyway, I just thought I'd update the thread with my findings. Thanks again for
all your help.
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 03/09/08 - 09:27 AM:
quote post
#24
Sigh, so much for thinking this was a done deal. Just when I thought I found my problem and had a decent solution
I've apparently made it worse, so it's back to the drawing board.

Just wanted to post so that anyone reading this wouldn't think my solution fixed it. If I find anything else I will
update this again.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5510
Posted 03/09/08 - 04:56 PM:
quote post
#25
That doesn't really make much sense -- they're supposed to run at different times, so when one runs it doesn't even know there are others as they aren't used for another 1/12/24 hours. Did you schedule them all for the same time?
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 03/09/08 - 08:08 PM:
quote post
#26
Nope schedule them as they're named, 1/12/24. Actually, I even tried starting them at odd intervals just to make sure they
don't run at the same time. I agree 100% with you it doesn't make sense.

Currently, I have taken the only jobs from 12hour.php that I need (since it is the smallest one) and added them to daily.php
and have completely removed the 12hour file. Logically, I know it shouldn't make a difference, but I'm keeping my fingers
crossed anyway.

Edited by hai on 03/09/08 - 08:14 PM
hai
Experienced

Usergroup: Customer
Joined: Apr 03, 2007
Total Topics: 22
Total Posts: 86
Posted 03/22/08 - 01:40 PM:
quote post
#27
Well, the site has been loading error free since my last post so I am finally considering this matter closed.

Thanks for all you help and suggestions. I still can't really pinpoint a logical reason for the errors or lack of them now, but as long as everything works I'm happy.
Search thread for
Download thread as

Page: 1 2



You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.