vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL error 1064 in vB 3.0.8 + PHP5.0.0 (https://vborg.vbsupport.ru/showthread.php?t=96978)

josha 09-26-2005 11:38 PM

MySQL error 1064 in vB 3.0.8 + PHP5.0.0
 
Can anyone help with this error? Out of the blue, this error occured: Any help would be greatly appreciated.

Thanks,
Josh.

----------------------------

Warning: Invalid argument supplied for foreach() in \includes\sessions.php on line 300

There seems to have been a slight problem with the database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.

<!--
Database error in vBulletin :
Invalid SQL:
SELECT * FROM style
WHERE (styleid = 0 AND userselect = 1)
OR styleid =
ORDER BY styleid ASC
LIMIT 1
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY styleid ASC
LIMIT 1' at line 4
mysql error number: 1064
Date: Monday 26th of September 2005 05:38:53 PM

Boofo 09-26-2005 11:51 PM

What is on line 300 and 10 lines before and 10 lines after?

josha 09-26-2005 11:53 PM

Here are lines. 290-310

'threadedmode' => $vboptions['threadedmode']
);

// get default language
$DB_site->reporterror = 0;
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");
foreach($phraseinfo AS $_arrykey => $_arryval)
{
$bbuserinfo["$_arrykey"] = $_arryval;
}
$DB_site->reporterror = 1;
unset($phraseinfo);

// emulate the registered user's setup for lastvisit/lastactivity with cookies for new post markers
if (!empty($_COOKIE[COOKIE_PREFIX . 'lastvisit']))
{
$bbuserinfo['lastvisit'] = intval($_COOKIE[COOKIE_PREFIX . 'lastvisit']);

Boofo 09-27-2005 12:01 AM

Is that original code or a hack? And did you check in the 3.0 bugs section on the com?

josha 09-27-2005 12:03 AM

Original Code. Also, yes.. We have and we can't find a solution.

Boofo 09-27-2005 12:06 AM

What vb version are you running?

josha 09-27-2005 12:07 AM

version 3.0.8


All times are GMT. The time now is 11:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02434 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete