News:

Join the Facebook Fan Page.

Main Menu

Who's online issue

Started by MATTEK, July 20, 2010, 11:19:12 PM

Previous topic - Next topic

MATTEK

I've made some mistakes while editing some php files and I'd like to revert back to the other day when I backed my forum up. How do I do this? - RESOLVED

New Issue

When you view who's online it shows people who are viewing the board index as "unknown action"
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

Quote from: MATTEK on July 20, 2010, 11:19:12 PM
I've made some mistakes while editing some php files and I'd like to revert back to the other day when I backed my forum up. How do I do this?

If you made mistakes with PHP files, you should not need to change the database, as their 2 different things.

Did you backup your forum files or just the database?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

Got passed that. Thanks, though.

However I've run into a new problem. When you view Who's online it shows people who are viewing the forum as "Uknown Action". Know how to fix that?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Antechinus

It's meant to do that sometimes. Doesn't need fixing. :)

MATTEK

Quote from: Antechinus on July 21, 2010, 01:46:19 AM
It's meant to do that sometimes. Doesn't need fixing. :)

It wasn't like that yesterday before I modified and changed my menu to drop down menus. The only time I ever got Unknown Action was when a user was playing an arcade game. Now it's constant. 5-6 people all have Unknown Action because they're viewing the forum.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

gbsothere

I don't know if anyone's tweaked this for RC3 but I adapted this "Tip" when it was bugging me, as well.


http://www.simplemachines.org/community/index.php?topic=192529.msg1225427#msg1225427


At least I have an inkling, now, even if it's still a bit vague.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

MATTEK

Quote from: ♪ JohnCcCcCc ♫ on July 21, 2010, 04:33:18 PM
Quote from: MATTEK on July 21, 2010, 01:32:54 PM
Quote from: ♪ JohnCcCcCc ♫ on July 21, 2010, 12:47:59 PM
hmmm, The arcade who list works for me, maybe you should look on the mod site and parse the mod, compare it to your who.english.php file
Wow. Ever since this issue started occuring, I can NOW see Arcade games being played, but when someone is viewing who's online themselves, it says unknown and when they are viewing the forum it says unknown too. It's all backwards now! lol

Compare your who.english.php to a clean one from the SMF package installer, your missing a line if it says unknown actions when people are viewing whos online.

If its missing from the languages, which I suspect it is, the line should be


$txt['whoall_who'] = 'Viewing <a href="' . $scripturl . '?action=who">Who\'s Online</a>.';


If its not missing, then try clearing your cache, however, I would strongly suggest starting a new topic, as we have pretty much high-jacked this one lol

I'm no good at this stuff. Everytime I change a .php file I get parse errors. Does the spacing matter?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

You could have got a parse error simply by forgetting the  "  ;  " at the end PHP does not count spaces or white space as anything. white space will NOT cause a parse error


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

Quote from: ♪ JohnCcCcCc ♫ on July 22, 2010, 01:03:18 PM
You could have got a parse error simply by forgetting the  "  ;  " at the end PHP does not count spaces or white space as anything. white space will NOT cause a parse error

Ok. However, I see some coding is indented or "tabbed" over. If that's wrong could it cause a parse error or is that considered a white space?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

Quote from: MATTEK on July 22, 2010, 01:07:46 PM
Quote from: ♪ JohnCcCcCc ♫ on July 22, 2010, 01:03:18 PM
You could have got a parse error simply by forgetting the  "  ;  " at the end PHP does not count spaces or white space as anything. white space will NOT cause a parse error

Ok. However, I see some coding is indented or "tabbed" over. If that's wrong could it cause a parse error or is that considered a white space?

That's just to make the code uniform and look tidy, so people can look through it easily, even it it was a complete mess it would still not cause a parse error, just would be a pain to look through.

If your getting a parse error changing this, look at the entries above the line your trying to add, you will see your error eventually, if not, attach the offending file and I will point out where your error is.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

Thank you John. I'll try this when I get home.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

I dont have who.english.php but i do have who.php. I'm looking in sources right?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

Quote from: MATTEK on July 22, 2010, 07:58:50 PM
I dont have who.english.php but i do have who.php. I'm looking in sources right?

Well we have not established that's where the error is yet, when diagnosing, I usually check the languages 1st, who.english.php is in .Themes/{yourtheme}/languages/


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

live627

Any mods?

Did you refresh the page a few times?

MATTEK

A bunch of mods. But from the time it worked to the time it didn't work I did not install any new mods. And yes I've refreshed a few times.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

You will have to try and remember when it stopped working, if you noticed.

With lots of mods installed and no knowing which mods, its very difficult to track these issues, without been in the driver seat.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

It stopped working after I changed my subs.php file to oprganize my cluttered menu into a drop down menu. However, the guy who helped me edit the file says subs.php has nothing to do with Who's Online.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

Quote from: MATTEK on July 26, 2010, 12:04:30 PM
It stopped working after I changed my subs.php file to oprganize my cluttered menu into a drop down menu. However, the guy who helped me edit the file says subs.php has nothing to do with Who's Online.

I don't think it does have anything to do with it either, any other changes in the same time frame?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: