Author Topic: error RemoveTopic.php  (Read 2403 times)

Offline hoxxing

error RemoveTopic.php
« on: June 28, 2010, 02:51:43 pm »
hi!

I have a problem when I delete a message on my forum, I get the following message:

Wrong value type sent to the database. Integer expected. (Amount)
Function: removeMessage
File: / Sources / RemoveTopic.php
Line: 953

When I check the line 953 I realize that it is about this part:

Quote
   // Begin SMFShop code
   $smcFunc['db_query']('', '
      UPDATE {db_prefix}members
      SET money = IF(money >= {int:amount}, money - {int:amount}, 0)
      WHERE id_member = {int:member}
      LIMIT 1',
      array(
         'amount' => $modSettings['shopPointsPerPost'],
         'member' => $row['id_member'],
      ));
   // End SMFShop code

I have tried to change that, but I have good results. the most that I have to do is change "));" by "),", but in doing so, another error occurs in line 957:

Quote
// Only remove posts if they're not recycled.
   if (!$recycle)

Blank page appears with a message: parse error in source / removetopic.php in line 957

Do not know what to do, really need help, I hope someone answers this message.

Version SMF: 2.0 RC3
Version SHOP: 3.1.5 for SMF 2.0 RC3


I appreciate the attention to this in advance because of the help I can offer.

Bye!
« Last Edit: June 29, 2010, 02:05:03 pm by hoxxing »

Offline hoxxing

Re: error RemoveTopic.php
« Reply #1 on: June 29, 2010, 01:33:03 pm »
por favor alguien que me ayude con este problemaaa!!!