vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Disable Ajax for Create Post / Reply VB5 (https://vborg.vbsupport.ru/showthread.php?t=326797)

seyed 10-09-2018 05:36 PM

Disable Ajax for Create Post / Reply VB5
 
Unfortunately since a few days ago vbulletin 5 is giving me :

Error while saving content: SyntaxError: Unexpected token E in JSON at position 65

for posting / creating content

BUT system is fine for removing posts

I just want to disable the AJAX for sending posts, I spent a lot of time fixing the problem but it doesn't work .. tried many things .. localhost it is fine but online ajax is not working so how can I disable ajax for create or send message

Thanks

noypiscripter 10-09-2018 07:01 PM

If you disable ajax for posting then you wouldn't be able to post at all or you would get the raw JSON response displayed on the page or downloaded by the browser. There's no server-side code available to process posting without AJAX on vB5.

Whenever you get that error when posting, it usually means the server responds to the ajax request with an HTML output instead of JSON format. The HTML output probably states a generic server error message. You should check the server error logs for the exact error message or temporarily enable debug mode so that you can see the exact error message in the HTML output in the browser dev tools Network tab > Response tab for the AJAX request for submitting a post.

seyed 10-14-2018 10:29 PM

Quote:

Originally Posted by noypiscripter (Post 2596690)
If you disable ajax for posting then you wouldn't be able to post at all or you would get the raw JSON response displayed on the page or downloaded by the browser. There's no server-side code available to process posting without AJAX on vB5.

Whenever you get that error when posting, it usually means the server responds to the ajax request with an HTML output instead of JSON format. The HTML output probably states a generic server error message. You should check the server error logs for the exact error message or temporarily enable debug mode so that you can see the exact error message in the HTML output in the browser dev tools Network tab > Response tab for the AJAX request for submitting a post.

Thanks for your help .. unfortunately VB5 breaks so easy like if your mail server doesn't work properly you will experience such an error .. I resolved the issue and it works fine ... thanks for your suggestion


All times are GMT. The time now is 07:00 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
  • Page Generation 0.01021 seconds
  • Memory Usage 1,713KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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