vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Images suddenly showing up as attchments (https://vborg.vbsupport.ru/showthread.php?t=288520)

Exeter 10-01-2012 04:20 AM

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

Mr_Running 10-01-2012 03:30 PM

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

Lynne 10-01-2012 03:36 PM

Are you sure you are using the WYSIWYG editor and not the Source editor (they get toggled right there in the editor)?

Exeter 10-01-2012 07:58 PM

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.

Lynne 10-01-2012 08:32 PM

Do you have a custom style? Do you have any modifications? Can we get a link to see a post with this problem.

Exeter 10-01-2012 11:29 PM

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.

Exeter 12-17-2012 09:41 PM

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.


All times are GMT. The time now is 10:41 AM.

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.01022 seconds
  • Memory Usage 1,725KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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