Announcement

Collapse
No announcement yet.

contentid is missing upon reporting VM

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] contentid is missing upon reporting VM

    Hi, when a user reports a VM on my forum they're presented with "A required field called contentid is missing or has an invalid value." error message

    However despite the error message, a thread is still created with the VM report.

    Also it seems on random VM's once you click report it takes you to an error page saying "No User specified. If you followed a valid link, please notify the administrator"
    So users can't seem to even report some VMs at all.

    Any ideas?

  • #2
    Also the link the new thread creates upon reporting a VM/post

    /member.php?u=44818&tab=visitor_messaging&vmid=513310

    This sends us straight to a database error

    Code:
    Database error in vBulletin 4.2.5:
    
    Invalid SQL:
    
    SELECT COUNT(*) AS comments
    FROM visitormessage AS visitormessage
    WHERE userid = 44818
    AND (visitormessage.state IN ('visible','moderation','deleted'))
    AND dateline >=;
    
    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 '' at line 5
    Error Number : 1064
    Request Date : Friday, May 22nd 2020 @ 03:50:15 PM
    Error Date : Friday, May 22nd 2020 @ 03:50:15 PM
    Script : /member.php?u=44818&tab=visitor_messaging&vmid=513310
    Referrer : /showthread.php?t=851513
    IP Address : 
    Username : 
    Classname : vB_Database_MySQLi
    MySQL Version : 5.5.65-MariaDB
    Server : 
    User Agent :

    Comment


    • #3
      Please make sure you are not using a version of PHP higher than 7.1.33. Newer versions may parse variables differently and are not compatible with vBulletin 4.2.5. This variable parsing can cause empty or null values to be passed to queries and they will fail.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API - Full / Mobile
      Vote for your favorite feature requests and the bugs you want to see fixed.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X