Hello,
I use SMF 2.0 Final and TP 1.104.
when making an article and post on frontpage, i get this error when i click into it:
Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?action=profile;area=tparticles;u=75
Apply Filter: Only show the errors with the same message
8: Undefined variable: smcFunc
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Sources/TPmodules.php
Line: 1120
Anyone know what is wrong?
Edit: It also gives me an error when clicking into it: Wrong value type sent to the database. Integer expected. (page)
Both of those errors I've posted fixes for on this board, and I think at the SMF site in the support topic. If you do a search for "Line: 1120" and "Integer expected. (page)" you should be able to find them. If not, post back and we'll find the topics for you.
Okay, here we go :)
Found this topic: http://www.tinyportal.net/index.php?topic=34090.msg272580#msg272580
Did this:
Quote from: IchBinâ,,¢ on June 15, 2011, 05:25:24 PM
Yep, this is a bug resulting from the db query change for SMF2 that I did in TP. If you open TPmodules.php and go to about line #1105 and find this code:
function tp_profile_articles($memID)
{
global $txt, $user_profile, $context, $db_prefix, $settings, $scripturl;
You can then add $smcFunc to the global line like this:
function tp_profile_articles($memID)
{
global $txt, $user_profile, $context, $db_prefix, $settings, $scripturl, $smcFunc;
That should fix the problem.
And this:
In TPmodules.php find this on line #1161
ORDER BY art.{raw:sorting} DESC LIMIT {int:start}, 10',
Change sorting to sort:
ORDER BY art.{raw:sort} DESC LIMIT {int:start}, 10',
Ended up with this critical error:
Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?page=Battlefield%203%20Campaign%20Trailer%20E3%202011
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadTheme
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Sources/TPortal.php
Line: 252
Bad news for me :-[
I have today, completly removed SMF/TP all off it. Deleted the mysql db, ftp etc.
Did a clean install smf 2.0 final. Added TP 1.104 and some other mods. Just finsihed up the worst job, and posted an article, just for fun, i wanted to try clicking into it again, and what do i get? Yeah, you guessed it right my dear friend, the same errors as i listed above. Did the same steps also with it, and still strugle with this error:
http://www.efclan.eu/index.php?page=Battlefield%203%20Campaign%20Trailer%20E3%202011
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadTheme
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Sources/TPortal.php
Line: 252
Seriously, is this a bug in TP, or what could have made it into my new install ? Any fix would be really appreciated.
link to webby: www.efclan.eu
Yes, it is a bug, and has been fixed...
Hi Kimmen, yes there are a bunch of bugs that I've been squashing since the RC2 release. Mostly in part because I switched all the database functions to use SMF's functions to make it more compatible and more maintainable. You should find the answer to your problem in the latter half of this post.
http://www.simplemachines.org/community/index.php?topic=27642.msg3091152#msg3091152
Thanks alot. that fix it.. :)