Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 10-01-2012, 04:20 AM
Exeter Exeter is offline
 
Join Date: Mar 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Images suddenly showing up as attchments

Recently my forum started showing images as attchments.

Repro:
Click "Insert image" in a post
Choose any image
click ok

result:
image never comes up in WYSIWYG editor
instead this text appears: [attachment]###[/attachment]

The file does get uploaded and is accessible to all users.

Any ideas what could be causing this?

The only real change I made recently was to move to PHP5.4.

Thanks
Reply With Quote
  #2  
Old 10-01-2012, 03:30 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe it's a BBCode / Browser issue.
Consider voting for this...
http://tracker.vbulletin.com/browse/VBIV-15470


and these...
http://tracker.vbulletin.com/browse/VBIV-15459
http://tracker.vbulletin.com/browse/VBIV-15462
Reply With Quote
  #3  
Old 10-01-2012, 03:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you are using the WYSIWYG editor and not the Source editor (they get toggled right there in the editor)?
Reply With Quote
  #4  
Old 10-01-2012, 07:58 PM
Exeter Exeter is offline
 
Join Date: Mar 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use the WYSIWYG editor.
Both the simple and complex one fail in both FF and Chrome.
I voted for one one the issues, but they don't seem to be exactly the issue I am having.

I'll try some trouble shooting with the source editor once I renable it.

A curious detail:
After adding an image it appears as an attachment "[attachment]123[attachment]" in the body of the WYSIWYG editor.

I can then add the attachment using the drop-down of the attachment icon. This adds and displays the image properly in the editor. The image management dialog pops up as expected.

When I save the post, the images all revert to attachments (simple links). showthread.php displays no images. Edit that post again, and I see images in the editor just like I did when I saved the post.
Reply With Quote
  #5  
Old 10-01-2012, 08:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a custom style? Do you have any modifications? Can we get a link to see a post with this problem.
Reply With Quote
  #6  
Old 10-01-2012, 11:29 PM
Exeter Exeter is offline
 
Join Date: Mar 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed the problem, but I don't know what caused it.

I noticed that any new images did not have a thumbnail in the attachment manager. Everything displayed as the default "?" thumbnail.

So I rebuilt the thumbnails in "Control panel -> Maintenance". That not only made the thumbnails appear, but also made the image upload process work again. I can now upload images again. It does not look like I'll have to rebuild the thumbnail cache again.

There is something wrong in the source, for sure. I did not find the problem yet. I'll search some more, but without an error and stack trace I'll have a hard time finding the problem.


Just to reply:
Everything is custom about my site. Custom hacks, plugins,... you name it.
This post caused all the trouble, but it works now.
Reply With Quote
  #7  
Old 12-17-2012, 09:41 PM
Exeter Exeter is offline
 
Join Date: Mar 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This was caused by running on PHP 5.4. Reverting to 5.3 fixes the issue.

Thumbnail creation does not work.
http://tracker.vbulletin.com/browse/VBIV-14794

I guess VB does not support PHP5.4.
At least not now.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04373 seconds
  • Memory Usage 2,211KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete