This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » Argument '$id' is invalid: Prefix...

Argument '$id' is invalid: Prefix images not found and Argument 'BinaryFile::id' is invalid

Argument '$id' is invalid: Prefix images not found and Argument 'BinaryFile::id' is invalid

Tuesday 20 January 2015 6:35:42 pm - 8 replies

Hi there,
I recently upgraded my website to eZ Publish 2014.11. Since then I can't access some PDF and image files. Here's the errors displayed :

Argument '$id' is invalid: Prefix images not found in original/application/c50864e1a58e01c1abe57e47e599fbf8.pdf

Argument 'BinaryFile::id' is invalid: 'var/ezdemo_site/storage/images/services/observation/hplus/1641-6-fre-FR/SNO-H.jpg' is wrong value in class 'BinaryFile'

I saw those topics which deals with this problem: 

but I'm not sure what to do…


Modified on Wednesday 21 January 2015 11:09:11 am by Julien Huon

Tuesday 10 February 2015 11:58:46 am


I have exactly the same problem.

Have you found a workaround since you created the topic ?

Tuesday 17 February 2015 10:40:08 am

Hi Mickaël,

Unfortunately the only solution I've found so far is to downgrade to 5.3 :/

Modified on Tuesday 17 February 2015 10:54:02 am by Julien Huon

Thursday 19 February 2015 4:25:51 pm


In case it helps, I've got these the kind of error 'Argument "$id' is invalid: Prefix images not found" for files supposed to be served directly by apache and for which my virtual host settings were not correct...


Thursday 19 February 2015 4:41:42 pm

Hello Hakim,

Thank you very much for sharing your information! This should really help people.

It's also what I was thinking and have said in the past here,

Hakim, could you say what specifically was incorrect that caused (or fixed) your error? Or if your not certain would you consider sharing a gist with your example working vhost config?


Modified on Thursday 19 February 2015 4:43:56 pm by // Heath

Friday 20 February 2015 7:51:23 pm

Hi Heath,
My problem was related to this kind of rule :

RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* - [L]

which allows the apache request to access directly the resource without hitting :

RewriteRule .* /index.php

I made some changes in my folders organisation and my rewrite rule did not reflect this change and I got the error. Changing the rule fix the problem.


Saturday 21 February 2015 6:06:25 pm

Hello Hakim,

Thank you very very much for answering my question and sharing your solution diagnosis. What you say is exactly what I was thinking the whole time.

I just know this will really help others! Thanks again!

Best wishes!


Wednesday 11 March 2015 2:57:56 pm

If you guys are still struggeling:

Saturday 14 March 2015 1:13:18 pm

Anders' link is the right way. In a nutshell, eZ Platform / 5 is much less tolerant than legacy when it comes to inconsistent data. If files were stored outside the configured vardir, it will fail this way.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from