TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 30, 2024, 10:38:37 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 147
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 117
  • Total: 117

Many errors on SMF 2.0

Started by sadicul, July 31, 2011, 08:58:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sadicul

// get all articles written by member
   $request =  $smcFunc['db_query']('', '
      SELECT COUNT(*) FROM {db_prefix}tp_articles
      WHERE author_id = {int:auth}',
      array('auth' => $memID)
   );
   $result = $smcFunc['db_fetch_row']($request);
   $max = $result[0];
   $smcFunc['db_free_result']($request);

error msg : Fatal error: Function name must be a string in C:\xampp\htdocs\Sources\TPmodules.php on line 1120

how can i fix that?i`m newbie on php :)

I find more problems :

Unknown column '$ID_MEMBER' in 'on clause'
File: C:\xampp\htdocs\Sources\TPmodules.php
Line: 237

Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadThemeFile: C:/xampp/htdocs/Sources/TPortal.php
Line: 252

The database value you're trying to insert does not exist: val
Function: do_postchecksFile: C:/xampp/htdocs/Sources/TPortalAdmin.php
Line: 2794

index.php?action=tpadmin;sa=submission : The database value you're trying to insert does not exist: ids


IchBin

I've posted fixes for these already. If you do a quick search with the error text you are getting you should be able to find the changes I posted easily. If not post back and we'll look them up for you.

sadicul

ok ty i`ll start searching now if anything go wrong i`ll post again here tyvm for support

sadicul

maybe i`m blind or i dont know how to search but really didnt find an article about how to fix the error or DB