Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Sep 2019, 02:12
Joshua2597 Joshua2597 is offline
 
Join Date: Oct 2014
Real name: Joshua
Plugin Issues

Hello,

I am currently running 3.8.x
I am trying to install a 3.8 MOD and get this error when importing via ACP

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 20 Sep 2019, 02:24
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
This happens because the plugin doesn't call the vBulletin database interaction methods but instead calls PHP's mysql_* library methods directly.

For example mysql_query in vBulletin should be converted to $db->query_read, but it also depends on what the SQL query wants to do. An UPDATE query should be called using $db->query_write instead.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 20 Sep 2019, 02:33
Joshua2597 Joshua2597 is offline
 
Join Date: Oct 2014
Real name: Joshua
Originally Posted by Dave View Post
This happens because the plugin doesn't call the vBulletin database interaction methods but instead calls PHP's mysql_* library methods directly.

For example, mysql_query in vBulletin should be converted to $db->query_read, but it also depends on what the SQL query wants to do. An UPDATE query should be called using $db->query_write instead.
When I went to run that I got this error


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #4  
Old 20 Sep 2019, 13:19
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
That indicates "$db->query_write" was put in the SQL query statement. The SQL query needs to be called using that function and not put in the actual statement. If you paste the pieces of code here then we might be able to supply the fix for you.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #5  
Old 20 Sep 2019, 15:41
Joshua2597 Joshua2597 is offline
 
Join Date: Oct 2014
Real name: Joshua
Originally Posted by Dave View Post
That indicates "$db->query_write" was put in the SQL query statement. The SQL query needs to be called using that function and not put in the actual statement. If you paste the pieces of code here then we might be able to supply the fix for you.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 20 Sep 2019, 16:32
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Can't really do much with that, we need to see the lines of code in the plugin that are throwing the errors.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #7  
Old 03 Oct 2019, 16:50
Joshua2597 Joshua2597 is offline
 
Join Date: Oct 2014
Real name: Joshua
Originally Posted by Dave View Post
Can't really do much with that, we need to see the lines of code in the plugin that are throwing the errors.
What do you mean by that?
Reply With Quote
  #8  
Old 03 Oct 2019, 16:54
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Post the code of the hook/plugin that is causing the issue here so we can tell you exactly what to change in order to fix it.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #9  
Old 03 Oct 2019, 17:03
Joshua2597 Joshua2597 is offline
 
Join Date: Oct 2014
Real name: Joshua
Originally Posted by Dave View Post
Post the code of the hook/plugin that is causing the issue here so we can tell you exactly what to change in order to fix it.
Code is to long to post but it's this mod
https://www.vbulletin.org/forum/showthread.php?t=201274
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 05:38.

Layout Options | Width: Wide Color: