Page MenuHomePhabricator

Image embeding failed
Closed, ResolvedPublic

Description

Last phabricator in date
Nginx

I was writing a text and then I embeded an image :

It's just a test like you can see in this screenshot {F64}

Instead of seeing the embded image, It internally failed (500). So I investigate more and look nginx logs and chrome debug (at the http header for the contents thats fails).

So I get something like this (for mozillia and same for chrome:

Remote Address:1.2.3.4:443
Request URL:https://a.a.info/file/xform/preview-220/PHID-FILE-l5mbhxdxotbybwwtbqef/gmzq5erwnn4fnlscgpgf/
Request Method:GET
Status Code:500 Internal Server Error

Cache-Control:private, no-cache, no-store, must-revalidate
Connection:keep-alive
Content-Type:text/html; charset=UTF-8
Date:Sat, 16 May 2015 13:18:34 GMT
Expires:Sat, 01 Jan 2000 00:00:00 GMT
Pragma:no-cache
Server:nginx/1.8.0
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-Frame-Options:Deny
X-Powered-By:PHP/5.6.7-1

Accept:image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate, sdch
Accept-Language:fr,de;q=0.8,en-GB;q=0.6,en;q=0.4
Cache-Control:no-cache
Connection:keep-alive
Cookie:phusr=salas; phsid=insert_phid_here
Host:a.a.info
Pragma:no-cache
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36

Naturally I browse https://a.a.info/file/xform/preview-220/PHID-FILE-l5mbhxdxotbybwwtbqef/gmzq5erwnn4fnlscgpgf/. And then get this exception.

PhutilMissingSymbolException
Failed to load class or interface 'PhabricatorFileTransform': the class or interface 'PhabricatorFileTransform' is not defined in the library map for any loaded phutil library. If this symbol was recently added or moved, your library map may be out of date. You can rebuild the map by running 'arc liberate'. For more information, see: http://www.phabricator.com/docs/phabricator/article/libphutil_Libraries_User_Guide.html

Note that this is the case only for embeding image so meme or normal file or even sound work like a charm.

Event Timeline

tycho.tatitscheff raised the priority of this task from to Needs Triage.
tycho.tatitscheff updated the task description. (Show Details)
tycho.tatitscheff added projects: Files, Remarkup.

Does the error go away when you restart Apache / php-fpm?

Restarting PHP-fpm5 5 did the job.
I now feel extra dumb, not trying to restart PHP (I did it for nginx thought).

Thank you a lot :)

epriestley claimed this task.