billy2

  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Posts: 350
Database Error
« on March 26th, 2012, 04:24 PM »Last edited on March 26th, 2012, 04:37 PM
Keep coming back to this for a while now.
Been at least 15 mins between tests - still happens.

Search > Save Drafts > top result

and get this on clicking the 1st result

Notice: Undefined index: nav_buttons in ../Themes/default/Display.template.php on line 841

Warning: Invalid argument supplied for foreach() in ../Themes/default/index.template.php on line 885

Pages: « previous 1 [2]   Go Down
Notice: Undefined index: get_message in ../Themes/default/Display.template.php on line 32

Fatal error: Function name must be a string in ../Themes/default/Display.template.php on line 32

Also..... Cannot post a screen shot even though its 35kb jpg

 :edit: I know you are working on display template - so could be connected
:edit: seems to be first line in many screens
<br /><br />cough, cough.

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 468

Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #2, on March 26th, 2012, 04:38 PM »
Yeah I may have broken something that doesn't fail for me.

I know that posting a new message will break the database for me. I'm taking a break because this is all fucke up really. Im not even sure the SMF codebase works in reverse mode.

billy2

  • Trying to earn brownie points for a lads trip to the Red Sea. Minus 1 already - just for asking!!
  • Posts: 350
Re: Database Error
« Reply #3, on March 26th, 2012, 04:52 PM »
nice an easy does it ;)


Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #4, on March 26th, 2012, 05:15 PM »
Norodo: the images don't show up because of the url tag bug. Whenever you edit a post, make sure to remove any url tags before you submit, otherwise they'll break.
I also removed your second image because it has full paths in it.

Also, I wanted to point out that the numerous errors are due to the Display.php file not completing its run, and still not cancelling the Display template calls (that, in itself, is also a bug I'd say.)

The database error is due to the message list being request with a "LIMIT -1" which isn't supported. This is one of the tons of bugs I'm currently working on... I've got to say, it's been a long time since I haven't got as many PHP bugs in a row.

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 468
Re: Database Error
« Reply #5, on March 26th, 2012, 05:19 PM »
Quote from Nao on March 26th, 2012, 05:15 PM
I also removed your second image because it has full paths in it.
Ah. Sorry. Didn't notice that, and didn't think twice since the error is "public". :S

Well. Take it easy. No stress.

Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #6, on March 26th, 2012, 05:29 PM »
Yeah but it won't be 'public' in a few hours, and this topic will stay here forever... ;)

Anyway. I'm currently exploring a different path for topic=xxx.msg1234. Instead of transforming message ID 1234 into a page offset, I'm simply keeping the 1234 and hoping it'll be enough to calculate the offset. It seems to be working for now... Fingers crossed.

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 468
Re: Database Error
« Reply #7, on March 26th, 2012, 05:33 PM »
As I said I didn't think about it :)

Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #8, on March 26th, 2012, 06:02 PM »
Okay, 'normal order' pages seem to be okay... Which is an impressive feat considering I've rewritten quite an important thing...
I'll see about reverse order pages now.
Oh, and I think that the 'all pages' feature is broken... I'll need to enable it in Wedge to test it.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Database Error
« Reply #9, on March 29th, 2012, 12:54 AM »
So, is this still a reproducible error?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #10, on March 29th, 2012, 08:00 AM »
It can be reproduced by provoking a database error inside Display.php, which no longer happens ;)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Database Error
« Reply #11, on March 29th, 2012, 12:00 PM »
Hahahaha, yes, I expected that one :P But it doesn't do it as standard, no? (If not, it can be sent to the archive.)

Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #12, on March 29th, 2012, 12:41 PM »
Nope, it doesn't.
Yes, do yourself the pleasure of archiving it ;)

(Wondering whether we really need to use the 'Fixed' prefix in subjects... There's already the board name...)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Database Error
« Reply #13, on March 29th, 2012, 05:24 PM »
The 'fixed' prefix was only relevant before we had the archive board :P

Nao

  • Dadman with a boy
  • Posts: 15,465
Re: Database Error
« Reply #14, on March 29th, 2012, 05:39 PM »
Yup...

BTW I'm considering opening a Test board, which would be ignored automatically from the homepage's recent topics list and generally from post counts. What do you think?