Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15779
  • *Total Topics: 2382
  • *Online Today: 2
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 2
  • *Total: 2

Author Topic: Error Log Message, Killing me to solve  (Read 1387 times)

0 Members and 0 Guests are viewing this topic.

Offline Trevor Hale

  • Newbie
  • *
  • Posts: 27
  • Gender: Male
    • CockpitBuilders.com
Error Log Message, Killing me to solve
« on: 13.04.12, 03:34:52 »
Hi Guys,

I am running SMF 2.0.2 and PortaMX V 1.45.  I am getting this error...

8: Undefined variable: row



On this Line, and here is the line!

   
Quote
$this->posts[$id]['body'] = substr_replace($this->posts[$id]['body'], $tmp, strpos($row['body'], $data), strlen($data));

Any Idea where I can go to see if I can find the problem?

Please see attach....

Offline portamx

  • Administrator
  • *
  • Posts: 99
Re: Error Log Message, Killing me to solve
« Reply #1 on: 13.04.12, 10:45:00 »
normaly the errorlog have more informations... the filename and the line number of the error... that helps ;)

Offline Trevor Hale

  • Newbie
  • *
  • Posts: 27
  • Gender: Male
    • CockpitBuilders.com
Re: Error Log Message, Killing me to solve
« Reply #2 on: 13.04.12, 13:07:01 »
LOL Fel, but thats why I added the attachment.  it has the file and the line number and I actually pasted thecode for that line.. 

Boardnews.php line 131

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Error Log Message, Killing me to solve
« Reply #3 on: 13.04.12, 19:45:01 »
It's a known bug ..
this line:
Code: [Select]
$this->posts[$id]['body'] = substr_replace($this->posts[$id]['body'], $tmp, strpos($row['body'], $data), strlen($data));
must have:
Code: [Select]
$this->posts[$id]['body'] = substr_replace($this->posts[$id]['body'], $tmp, strpos($this->posts[$id]['body'], $data), strlen($data));
Many are stubborn in relation to the path, a few in relation to the target.

Offline Trevor Hale

  • Newbie
  • *
  • Posts: 27
  • Gender: Male
    • CockpitBuilders.com
Re: Error Log Message, Killing me to solve
« Reply #4 on: 14.04.12, 21:03:29 »
thanks Fel, I should have checked there.

Trev

Offline Trevor Hale

  • Newbie
  • *
  • Posts: 27
  • Gender: Male
    • CockpitBuilders.com
Re: Error Log Message, Killing me to solve
« Reply #5 on: 14.04.12, 23:25:59 »
Solved.  Worked like a charm.  Many thanks.