![]() |
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 Code:
Error: Call to undefined function mysql_query() in ..../admincp/plugin.php(2001) : eval()'d code on line 13 |
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. |
Quote:
Code:
Static analysis: |
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.
|
Quote:
Code:
An error occurred while attempting to execute your query. The following information was returned. |
Can't really do much with that, we need to see the lines of code in the plugin that are throwing the errors.
|
Quote:
|
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.
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=201274 |
All times are GMT. The time now is 11:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|