Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2014, 09:18 AM
samerss samerss is offline
 
Join Date: Mar 2014
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default style table error

Hello everyone,
I'm facing a strange error in db. when I try to create a new style it always takes the id zero (styleid=0), and I get this error (you cannot assign main em>stylename to one of its branches ). but the style is created anyway. this is the case with creating a style without parents.
if I create a child style, I dont get that error but the id will be set to zero too.

and If I try to delete the new style with id=0 from admincp, I get and error says: there is no style with id=0. thought, it's still shown in admincp.

I tried to use tools.php to repair the tables and the style, but it didn't work.
I tried to run upgrade, but it didn't work either.

repair table gives this note: Table does not support optimize, doing recreate + analyze instead
after I create the style with id=0 I get mysql errors in all sections of "Styles and Templates":
Warning: mysqli_query(): (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND t2.title IS NULL ORDER BY title, ordercontrol' at line 4 in ..../includes/class_core.php on line 1393
Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT t1.templateid, t1.title, INSTR(',0, -1,', CONCAT(',', t1.styleid, ',') ) AS ordercontrol, t1.styleid
FROM template AS t1
LEFT JOIN template AS t2 ON (t2.title=t1.title AND t2.styleid = -1)
WHERE t1.styleid IN (0,) AND
t2.title IS NULL
ORDER BY title, ordercontrol;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND
t2.title IS NULL
ORDER BY title, ordercontrol' at line 4
Error Number : 1064
Request Date : Tuesday, March 4th 2014 @ 01:01:29 PM
Error Date : Tuesday, March 4th 2014 @ 01:01:29 PM
Script : http://arabic.rt.com/forum/admincp/t....php?do=modify
Referrer : http://arabic.rt.com/forum/admincp/index.php?do=nav
Username : admin
Classname : vB_Database_MySQLi
MySQL Version : 5.5.34-MariaDB-wsrep-log

P.S. server Linux, mysql version 5.5.34
php version: 5.4.24
forum language: Arabic
no live version yet.

thanks.

Samer
Reply With Quote
  #2  
Old 03-04-2014, 05:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moved to vB4 section.

Check Maintenance > Diagnostics > Suspect File Version. Are any DEFAULT vbulletin files listed as "not containing expected contents" or as "expecting version 4.2.2, found verion 4.x.x" ?
Reply With Quote
  #3  
Old 03-04-2014, 07:19 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to your phpmyadmin and check the template table and see the title table and see if any are empty
Reply With Quote
  #4  
Old 03-05-2014, 10:18 AM
samerss samerss is offline
 
Join Date: Mar 2014
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't find any file with "not containing expected contents" or any other notices there.
also with the templates I didn't find anyone with an empty title.
Reply With Quote
  #5  
Old 03-05-2014, 02:04 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You did check all pages as i have over 100 and only have one skin installed
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:34 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.03683 seconds
  • Memory Usage 2,196KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete