Thread: Major Additions - DownloadsII
View Single Post
  #2131  
Old 03-14-2013, 01:58 PM
Ophelia Ophelia is offline
 
Join Date: Feb 2006
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We just upgraded to the newest version of Photopost. In doing so, after importing their xml plugin, whenever we try to edit files in the downloads, we receive the following database error.

HTML Code:
Database error in vBulletin 4.2.0:

Invalid SQL:

UPDATE vb_dl2_files SET
`title` = 'March 13 in 13 Inspiration',
`description` = 'The attached is a PDF document with 13 things to inspire you on the 13th. You can read more about this challenge here:\nhttp://myurl/forum/forumdisplay.php?...-in-13-Project\n\nThis list contains suggestions and are not mandatory! If something else inspires you we would love to hear and see it in the challenge forum and gallery!',
`author` = 'My Name',
`_author` = '<a href=\"member.php?u=19504\">My Name</a>',
`url` = 'http://',
`extension` = '',
`category` = 8,
`size` = 0,
`pin` = 0,
`modqueue` = 0,
`link` = Resource id #20,
`lastedit` = 1363183147,
`lasteditor` = 'My Name',
`lasteditorid` = 19504
WHERE id = 1110;

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 'id #20,
`lastedit` = 1363183147,
`lasteditor` = 'My Name',
' at line 12
Error Number : 1064
Request Date : Wednesday, March 13th 2013 @ 08:59:07 AM
Error Date : Wednesday, March 13th 2013 @ 08:59:07 AM
Script : [url]http://myurl/forum/downloads.php?do=edit&id=1110[/url]
Referrer : [url]http://myurl/forum/downloads.php?do=edit&id=1110[/url]
IP Address : xxxxxxxx
Username : My Name
Classname : vB_Database
MySQL Version : 5.1.68-cll
I posted in Photopost and their response was as follows.

Quote:
The proper thing would be to contact your hack author and correct his hack. You need to diagnose from that end.

We integrate with vBulletin we do not claim intergration with hacks or mods you may download and install from vbulletin.org

Your error is in whatever this part of the guys hack query is as a reference

Code:

`link` = Resource id #20,

There are no errors with your vbulletin photopost integration and install this issue is with the hack which has the error.

Your hack author probally needs to define his mysql resource and then restructure his query.

Obviously I do not use that hack so I can only point out where the issue is in his query.

Just for your reference except for a couple style class additions the 8.12 and 8.23 xml plugins are exactly the same. There are no changes that I can see.
He had us add

PHP Code:
mysql_close$result ); 
to the end of their plugin code, but it just crashed vBulletin.

Is there something that can be done to fix this?
Reply With Quote
Благодарность от:
Delfi_r
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01148 seconds
  • Memory Usage 1,779KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete