Doctrine can't rename proxy files - symfony

I'm working on an API on Symfony 4. When I call a route I get this error :
(1/1) ErrorException
Warning: rename(/home/api/var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityClientDonneurOrdre.php.5cd152498b5116.72752587,/home/api/var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityClientDonneurOrdre.php): No such file or directory"
The two files are in the folder. I don't know what to do?.
It should show my object formatted in JSON but nothing is shown except this error. There is this thing too: When I call a smaller object, that does not have any joints, it shows properly.
Could that be a problem with JMS Serializer?

Related

IPNS, no link named "xxxx" under "hash"

I am using IPFS and IPNS to populate my website with data. Pulling json files via HTTP works great, but when I try to pull .jpg file from my IPNS published IPFS directory, I get an error.
https://ipfs.io/ipns/k51qzi5uqu5dkmn6qn85a4cxy1lji61a7tbiirmdbkae4ay9hd16qtp3qgatzh/picutres/marko.jpg
This is the link I am trying to put in src attribute inside of an img tag. Andd.... I get the following message:
ipfs resolve -r /ipns/k51qzi5uqu5dkmn6qn85a4cxy1lji61a7tbiirmdbkae4ay9hd16qtp3qgatzh/picutres/marko.jpg: no link named "picutres" under QmdkGNpfKBfbZhMNvbfMdHf21zwkEkyr7tnMPWuqYXM9Vw
It won't route to that file... But, the file is there, if you go first to the https://ipfs.io/ipns/k51qzi5uqu5dkmn6qn85a4cxy1lji61a7tbiirmdbkae4ay9hd16qtp3qgatzh through the gateway in the browser and manually locate the file it will route to it and retrieve it.
I am not using js-ipfs, since I want to reduce my bundle and complexity of the website, since it really doesn't require js-ipfs.
How can I solve this?? :(
easy one to answer you have a typo instead of 'pictures' you have 'picutres' as the error message says.
no link named "picutres"
basically this error message tells you that no folder with that name exists. You should check spelling.

Send file with Postman to FosRestBundle Symfony

Im trying to upload file to a Symfony app, then retrieve the file from the ParamFetcher of FosRestBundle, finally create a SonataMedia object with the uploaded file.
Im stuck on how to upload the file. The entire application has been developed using Postmans POST, GET, DELETE, etc functions for testing right until now.
If already tested as shown in the picture, simply doing a POST with de param file having the image file selected. ParamFetcher is not detecting the param and returns error message saying file is null.

When I move project to live server getting this error

When I move project to live server getting this error .This error is on concrete 5..
Whoops \ Exception \ ErrorException (E_ERROR) Class '\Application\Block\ParallaxSection\Controller' not found
It looks like you had a block in the overrides directory (/applications/blocks/parralax_section) but it's not there now?
Maybe you converted it to a package, but used the same database where you had installed it via the override directory?
Whatever the case, I'd say find the block folder and throw it in that directory, or worst case scenario just stub out a block folder called parallax_section with a controller that doesn't do anything, and that would make it not explode at the least.

GET and .xq files

When using exist-db, a GET message will obtain an entire file from a collection (by providing the URI). In the case of a .xq file, however, the same GET message will instead execute the file.
I am wondering if there is anything I can attach to a GET message to cause exist-db to return the file rather than execute it. I should have all the necessary permissions, or I should be able to set them.
Thank you.
Assuming you are running eXist as a stand-alone server:
"GET accepts the following request parameters, which must be URL-encoded" _source=yes | no - which "Specifies whether the query should display its source code instead of being executed" - see the developers guide online for full details & example usage.
eXist sets this capability to 'no' as default in it's config - however you can override this permanently by adding specific files to the <allow-source></allow-source> section in the Web-application Descriptor file (descriptor.xml) read from WEB-INF directory of the web application or from the directory specified by the exist.home system property.
Hope that helps.

Setting connection with function

I am trying to use ASP to create a connection to my database and i have the following connection code:
Set objConn = ConnectDB()
Set objRS = objConn.Execute(query)
I have an include file that I have at the top of my page:
<!--#include FILE=dbcano.inc-->
And I get this error when I call my page:
Microsoft VBScript runtime error
'800a01f4' Variable is undefined:
'ConnectDB' patti_trinkets.asp, line 9
The ConnectDB() is a function I created that is stored within the dbcano.inc file.
Any suggestions as to why I am getting this error when I call my page?
My full code can be found here: http://pastie.org/337183
Shouldn't you try
ConnectDB(objConn)
instead?
Well. It finds the include file because you dont get the
"Active Server Pages error 'ASP 0126'
Include file not found The include
file 'dbcano.inc' was not found
But your function ConnectDB that I presume should return a connection object is not recognized as a function, therefore it thinks it is a undefined variable.
To know why, we really need to se the code in the include file too.
And by the way, make sure to stop your server to serve the content in the .inc -file. Too many times, you see sites where the inc-file has been moved, and some old page serves up the "Include file not found. The include file "dbhandler.inc" was not found" and then you only have to enter dbhandler.inc in the browser to get the sql-server name/ip, connectionstring and everything. This is well known but still a common thing, just google the error message with a couple of more keywords to get a list of exploitable sites.

Resources