vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Editing subscription gives sql error (https://vborg.vbsupport.ru/showthread.php?t=199443)

KozmoK 12-21-2008 04:33 PM

Editing subscription gives sql error
 
After upgrading to 3.7.4 - 1 I can no longer update peoples subscriptions:

Database error in vBulletin 3.7.4:

Invalid SQL:

DELETE FROM mysql_access
WHERE forumid IN () AND
userid = 2869;

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 ') AND
userid = 2869' at line 2

The only thing different is I renamed my forums/admin to forums/cpadmin - but I did that 2 versions ago.

ExTincTi0N 12-21-2008 04:37 PM

did you put forums/cpadmin in the right spot in the config.php?

Lynne 12-21-2008 04:39 PM

When you renamed the admin cp, did you change it in your config.php file also?

KozmoK 12-21-2008 05:06 PM

yes. Other admin pages/functions work.

$config['Misc']['admincpdir'] = 'cpadmin';

Lynne 12-21-2008 05:17 PM

Try disabling your plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 


KozmoK 12-21-2008 05:29 PM

Lynne,

I tried what you said, and I get the same error.

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 ') AND
userid = 605' at line 2
Error Number : 1064
Request Date : Sunday, December 21st 2008 @ 12:32:03 PM
Error Date : Sunday, December 21st 2008 @ 12:32:03 PM
Script : http:forums/cpadmin/subscriptions.php?do=status
Referrer : htp://www.ddddd.com/forums/cpadmin/subscriptions.php?do=adjust&subscriptionlogid=313

Lynne 12-21-2008 05:53 PM

But there is no table called "mysql_access" in the database. That query does not exist in default vbulletin - so where is that query coming from? Try reuploading a new subscriptsion.php page into your admin cp.

KozmoK 12-21-2008 06:13 PM

mysql is my prefix. Actually its something different, I didnt want to post my real prefix.

there should be a access table right?

I already uploaded the subscriptions.php file before coming here for help.

Thanks for your input.

Koz

** UPDATE **

It only does it when I make a subscription not active.

I believe the SQL statement is invalid "WHERE forumid IN ()" part.

dtv100 12-21-2008 07:51 PM

Quote:

Originally Posted by KozmoK (Post 1690520)
mysql is my prefix. Actually its something different, I didnt want to post my real prefix.

there should be a access table right?

I already uploaded the subscriptions.php file before coming here for help.

Thanks for your input.

Koz

** UPDATE **

It only does it when I make a subscription not active.

I believe the SQL statement is invalid "WHERE forumid IN ()" part.

by any chance do you have a hack install to prevent post count to go down?

have same problem and only thing that change in my forums for months was that .

KozmoK 12-22-2008 05:21 AM

No, nothing like that at all. I may have to revert back to previous version.

Marco van Herwaarden 12-22-2008 09:43 AM

If you have this rpoblem using only default vB (no modifications active), then follow these instructions:

To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Make sure that you rename the adminco directory in the vB software package to the name you are using before uploading.

If this does not solve your problem, then please post the problem on vB.com.

Mr Peabody 01-05-2009 04:19 AM

any updates on this?, I'm having the same problem.

Dismounted 01-05-2009 04:39 AM

Did you read the previous posts?

Mr Peabody 01-05-2009 04:49 AM

Turns out its a known issue and there's a patch on vb.com

Cheers

dtv100 01-05-2009 07:00 AM

would you care to post link to info?

Dismounted 01-05-2009 07:21 AM

<a href="http://www.vbulletin.com/forum/project.php?issueid=26761" target="_blank">http://www.vbulletin.com/forum/proje...?issueid=26761</a>

Mr Peabody 01-05-2009 08:12 AM

thats the one.


All times are GMT. The time now is 03:03 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.01038 seconds
  • Memory Usage 1,745KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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