[Neos] Uncaught Exception in Flow An error with code "1" occured when trying to read the image file_get_contents

Christian Glass mail at christianglass.de
Fri Dec 5 21:05:48 CET 2014


Meanwhilst: Bad idea!


1.) Log into phpMyAdmin
2.) Search the database for the RESOURCE_ID ("exact string")
3.) Delete the found table entries (tables typo3_flow_resource_resource 
and typo3_flow_resource_resourcepointer


SET FOREIGN_KEY_CHECKS=0; -- to disable them
DELETE FROM  `DATABASE_NAME`.`typo3_flow_resource_resourcepointer` 
WHERE  `typo3_flow_resource_resourcepointer`.`hash` =  'RESOURCE_ID';
SET FOREIGN_KEY_CHECKS=1; -- to re-enable them


SET FOREIGN_KEY_CHECKS=0; -- to disable them
DELETE FROM  `DATABASE_NAME`.`typo3_flow_resource_resource` WHERE  
`typo3_flow_resource_resource`.`resourcepointer` =  'RESOURCE_ID';
SET FOREIGN_KEY_CHECKS=0; -- to re-enable them


Result: This rendered my Media backend completely useless...

########################################
Uncaught Exception in Flow
Entity was not found.
Doctrine\ORM\EntityNotFoundException thrown in file
/path/to/TYPO3-Neos-1.2/Data/Temporary/Development/Doctrine/Proxies/__CG__TYPO3FlowResourceResource.php 
in line 32.
########################################

I am afraid this can't be remedied, does it?


=> He’s Dead, Jim!


regards, Chris


Am 05.12.2014 19:39, schrieb Christian Glass:
> I think this would come in handy here:
>
> https://jira.typo3.org/browse/NEOS-414
> "Fail gracefully for missing resources"
>
>
> O.o
>
>
>
> Am 05.12.2014 19:34, schrieb Christian Glass:
>> Hi folks!
>>
>> I deleted the Neos-Directory and re-installed Neos while _keeping_
>> the database as is.
>>
>>
>> I get this Exception when entering Media section in Neos backend:
>>
>> #########################################################
>> Uncaught Exception in Flow
>> #1391806394: An error with code "1" occured when trying to read the
>> image: "Warning:
>> 
>> file_get_contents(resource://30d0d71c6e7e4dd53636a8b9a5d5c8fd9b73f10f):
>> failed to open stream:
>> 
>> "\TYPO3\Flow\Resource\Streams\StreamWrapperAdapter::stream_open"
>> call failed in
>> 
>> /path/to/TYPO3-Neos-1.2/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Media_Domain_Service_ImageService.php
>> line 75"
>> [...]
>> #########################################################
>>
>> I already tried
>>
>> flushing both caches
>> and
>> rm -rf Data/Temporary
>>
>> but it did not help.
>>
>>
>> I assume the Exception occurs due to an artifact in the database 
>> from
>> an image
>> that I uploaded once before and is not available any more in my
>> site's Ressource folder.
>> Is this the case here?
>>
>> How can I remedy this the clean and proper way?
>>
>> regards, Chris
>> _______________________________________________
>> Neos mailing list
>> Neos at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos


More information about the Neos mailing list