Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
View count all 1?
VariStop
New
What is the low-down on the view counts?
I'm using version 2.1.8p2 and all the topics are showing a view count of 1.
I found some old posts here talking about views being incremented by 10 only. Is that still the case? Since I have a small forum, how could I make it increment by one?
Thank you
0
Comments
Check you conf/config.php for this line:
And remove it if present
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thanks for your reply. Unfortunately, this line was not present in the config.php
What could be preventing the count from going up?
Yes, the magic_quotes_gpc setting in PHP, which has to be turned off.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thank you. I have disabled the magic quotes in the main vanilla folder by creating a php.ini file as described in the php manual. Should I also place a php.ini file in all the subfolders of vanilla as well?
Actually, the vanilla forum stops working (literally, there's not even a error message, just a blank screen) when magic quotes is disabled with the new php.ini file in the main folder.
Vanilla definitely doesn't require magic quotes.
See if you get any error messages. It might also be an internal server error.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Blank screen means you need to enable debugging and report the actual error.
Add
$Configuration['Debug'] = TRUE
to your/conf/config.php
file.EDIT - Crossposted again.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Here's the error when I add the php.ini file to vanilla main folder:
Fatal error: Class 'PDO' not found in public_html/mysite.com/forum/library/database/class.database.php on line 48
Vanilla requires PDO to be enabled on your server. You can verify your server doesn't have PDO by checking out your
phpinfo()
.If you are using a host, ask them to enable it.
Here is more information on enabling PDO if you own the server: http://stackoverflow.com/questions/18747136/how-do-i-configure-php-to-enable-pdo-and-include-mysqli-on-centos
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Interesting. My custom php.ini file was disabling pdo. For those reading this with the same situation, here's a link to fix this:
http://stackoverflow.com/questions/12027533/php-ini-blocks-php-pdo
The view counts are now working!
Thank you so much Bleistivt and hgtonight! You guys are the best!
Yes it must have been something like that because if you really didn’t have PDO, you would not have go so far to see the view.
grep is your friend.