vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Error Number : 1054 Unknown column 'edited' in 'where clause' (https://vborg.vbsupport.ru/showthread.php?t=275496)

OldSchoolDSL 12-14-2011 07:37 PM

Error Number : 1054 Unknown column 'edited' in 'where clause'
 
OK so anytime I rebuild my templates the following happens


Updating style sets with no parent information

No styles needed updating
Updating style information for each style...

Default vBulletin 4 ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Classic SU v3 Lite ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Classic SU v3 - Fixed ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Classic SU v3 Green - Fixed ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Classic SU v3 Green - Fluid ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Classic SU v3 - Fluid ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Mint ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

beta / unstable ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Christmas 2011 ... (Templates) (StyleVars) (Replacement Variables) (CSS) (Controls) Done.

Aficionado Fluid ... (Templates) (StyleVars) (Replacement Variables) (CSS) Done.


^ All looks well, but below it I see this....

Code:

Database error in vBulletin 4.1.8:

Invalid SQL:

                SELECT templateid
                FROM template
                WHERE
                        edited=1;

MySQL Error  : Unknown column 'edited' in 'where clause'
Error Number  : 1054
Request Date  : Wednesday, December 14th 2011 @ 09:33:11 PM
Error Date    : Wednesday, December 14th 2011 @ 09:33:12 PM
Script        : http://www.sociallyuncensored.eu/forums/admincp/misc.php?do=rebuildstyles
Referrer      : http://www.sociallyuncensored.eu/forums/admincp/misc.php?do=chooser
IP Address    : 7xx.xxx.xxx.xxx
Username      : Adam
Classname    : vB_Database_MySQLi
MySQL Version : 5.5.18-1~dotdeb.1

Solutions, thoughts, opinions?
Anything would be helpful.

kh99 12-14-2011 09:15 PM

I don't see that exact query anywhere, and the template table has no "edited" column. Could that be from a mod? Try temporarily disabling all your mods by putting:

Code:

define('DISABLE_HOOKS', true);

at the top of your config.php file, right under the <?php

OldSchoolDSL 12-14-2011 09:56 PM

Quote:

Originally Posted by kh99 (Post 2277815)
I don't see that exact query anywhere, and the template table has no "edited" column. Could that be from a mod? Try temporarily disabling all your mods by putting:

Code:

define('DISABLE_HOOKS', true);

at the top of your config.php file, right under the <?php

You sir or miss, are correct.

Now to track down the evil doer.... sigh .... 200+ modifications to go through... Oh what fun. :p

edit: just noticed your name there, Kevin.... Thank you :)

--------------- Added [DATE]1323918737[/DATE] at [TIME]1323918737[/TIME] ---------------

@Kevin thank you so much for your willingness to help. I should have checked a possible mod conflict from the beginning and would have saved myself the trouble.

Removing the following 3 modifications resolved my issues, for anyone else who may in the future have a problem.

https://vborg.vbsupport.ru/showthread.php?t=266696
https://vborg.vbsupport.ru/showthread.php?t=152931
https://vborg.vbsupport.ru/showthread.php?t=243460

I confirmed the error by not only removing these on my site, but also by using them on a fresh install with no other modifications or templates.

This is not to say that these 3 are bad, but simply that your own results may vary.


All times are GMT. The time now is 04:00 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.01084 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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