partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 401 forks source link

Error saving manufacturer's logo #865

Open dani2bunny opened 7 years ago

dani2bunny commented 7 years ago

Hello,

I'm getting this error when I try to save manufacturer after adding a logo image. I tried with all 3 formats (jpg, gif and png). Same error happens on demo site.

An error occurred

Details

Type error: Argument 1 passed to PartKeepr\ManufacturerBundle\Entity\Manufacturer::removeIcLogo() must be an instance of PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo, instance of Proxies__CG__\PartKeepr\ImageBundle\Entity\TempImage given, called in /var/www/partkeepr/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php on line 616

Request

PUT /api/manufacturers/295?_dc=1496180728969

[object Object]

Response Status Code

500

Response

{"@context":"\/api\/contexts\/Error","@type":"Error","hydra:title":"An error occurred","hydra:description":"Type error: Argument 1 passed to PartKeepr\ManufacturerBundle\Entity\Manufacturer::removeIcLogo() must be an instance of PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo, instance of Proxies\CG\PartKeepr\ImageBundle\Entity\TempImage given, called in \/var\/www\/partkeepr\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/PropertyAccess\/PropertyAccessor.php on line 616"}

Server Configuration

doctrine_orm_version: 2.5.4 doctrine_dbal_version: 2.5.2 doctrine_common_version: 2.6.0-DEV php_version: 7.0.15-0ubuntu0.16.04.4 auto_start_session: true maxUploadSize: 31457280 isOctoPartAvailable: true availableImageFormats: JPG,GIF,PNG max_users: unlimited authentication_provider: PartKeepr.Auth.HTTPBasicAuthenticationProvider tip_of_the_day_uri: https://partkeepr.org/tips/%s password_change: true

joachimtingvold commented 7 years ago

Can confirm that this happens with us as well, running from source.

An error occurred

Details
==================================
Expected argument of type "PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo", "Proxies\__CG__\PartKeepr\ImageBundle\Entity\TempImage" given

Request
==================================
PUT /api/manufacturers/286?_dc=1497289547897

[object Object]

Response Status Code
==================================
500

Response
==================================
{"@context":"\/api\/contexts\/Error","@type":"Error","hydra:title":"An error occurred","hydra:description":"Expected argument of type \u0022PartKeepr\\ManufacturerBundle\\Entity\\ManufacturerICLogo\u0022, \u0022Proxies\\__CG__\\PartKeepr\\ImageBundle\\Entity\\TempImage\u0022 given"}

Server Configuration
==================================
doctrine_orm_version: 2.5.4
doctrine_dbal_version: 2.5.2
doctrine_common_version: 2.6.0-DEV
php_version: 7.0.19
auto_start_session: true
maxUploadSize: 2097152
isOctoPartAvailable: false
availableImageFormats: JPG,GIF,PNG
max_users: unlimited
authentication_provider: PartKeepr.Auth.WSSEAuthenticationProvider
tip_of_the_day_uri: https://partkeepr.org/tips/%s
password_change: true
HSoeren commented 6 years ago

Also happens here

`An error occurred

Details

Expected argument of type "PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo", "Proxies__CG__\PartKeepr\ImageBundle\Entity\TempImage" given

Request

POST http://repronik.de/inventory/web/api/manufacturers?_dc=1509964993788

[object Object]

Response Status Code

500

Response

{"@context":"\/inventory\/web\/api\/contexts\/Error","@type":"Error","hydra:title":"An error occurred","hydra:description":"Expected argument of type \u0022PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo\u0022, \u0022Proxies\CG\PartKeepr\ImageBundle\Entity\TempImage\u0022 given"}

Server Configuration

doctrine_orm_version: 2.5.4 doctrine_dbal_version: 2.5.2 doctrine_common_version: 2.6.0-DEV php_version: 7.0.22-0ubuntu0.16.04.1 auto_start_session: true maxUploadSize: 8388608 isOctoPartAvailable: false availableImageFormats: JPG,GIF,PNG max_users: unlimited authentication_provider: PartKeepr.Auth.HTTPBasicAuthenticationProvider tip_of_the_day_uri: https://partkeepr.org/tips/%s password_change: true patreonStatus: [object Object] `

JCFutch commented 6 years ago

Still having this issue as of today. Any fixes on this?

An error occurred

Details

Expected argument of type "PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo", "Proxies__CG__\PartKeepr\ImageBundle\Entity\TempImage" given

Request

POST http://choo.choo/api/manufacturers?_dc=1519597927074

[object Object]

Response Status Code

500

Response

{"@context":"\/api\/contexts\/Error","@type":"Error","hydra:title":"An error occurred","hydra:description":"Expected argument of type \u0022PartKeepr\ManufacturerBundle\Entity\ManufacturerICLogo\u0022, \u0022Proxies\CG\PartKeepr\ImageBundle\Entity\TempImage\u0022 given"}

Server Configuration

doctrine_orm_version: 2.5.4 doctrine_dbal_version: 2.5.2 doctrine_common_version: 2.6.0-DEV php_version: 7.0.25-0ubuntu0.16.04.1 auto_start_session: true maxUploadSize: 2097152 isOctoPartAvailable: false availableImageFormats: JPG,GIF,PNG max_users: unlimited authentication_provider: PartKeepr.Auth.HTTPBasicAuthenticationProvider tip_of_the_day_uri: https://partkeepr.org/tips/%s password_change: true patreonStatus: [object Object]

elekgeek commented 6 years ago

The error is still not fixed in version 1.4, this issue is more than 1 year old.

thank you

Drachenkaetzchen commented 6 years ago

@elekgeek Unfortunately, PartKeepr is not a full time job yet. As such, priority is given for bug fixes and feature requests from people or organizations which sponsor features. You can help to make PartKeepr a full time job so that features can be implemented faster by supporting PartKeepr on Patreon

X3msnake commented 6 years ago

@elekgeek partkeeper is a open source project.

you can contribute back by fixing the issue and making a pull request also.

best regards

No dia segunda-feira, 1 de outubro de 2018, Felicia Hummel < notifications@github.com> escreveu:

@elekgeek https://github.com/elekgeek Unfortunately, PartKeepr is not a full time job yet. As such, priority is given for bug fixes and feature requests from people or organizations which sponsor features. You can help to make PartKeepr a full time job so that features can be implemented faster by supporting PartKeepr on Patreon https://patreon.com/partkeepr

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/partkeepr/PartKeepr/issues/865#issuecomment-425791981, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-hUeLJQKUXPBN7y3OVZKXfP-X9e_ks5ugaWLgaJpZM4Nq54A .

-- Com os melhores cumprimentos, Vinicius Silva

elekgeek commented 6 years ago

@Drachenkaetzchen It seems holders of this project are leaving bugs for a long time on purpose in order to force people become a Patreon which is bad to the project itself after all.

@X3msnake I am not a PHP developer, otherwise I would fixed it as I don't have any problem contributing to open source communities. There is no point redoing the issue which has been reported many times.

Drachenkaetzchen commented 6 years ago

@elekgeek that's complete bullshit! I'm the only PartKeepr developer, project founder and have been for almost all of the time! I have spent thousands (YES, THOUSANDS) of unpaid man hours developing PartKeepr, I'm even paying for the server with my OWN money (yes, hosting and patreon doesn't even cover these costs!). Honestly, please fuck off and use another inventory software.

elekgeek commented 6 years ago

Thanks for your effort and nice words. No need to pour your anger on me today..

If you are still upset and don't want to fix that bug and other bugs, can you or someone else be kind to recommend similar inventory software as per your suggestion to use another inventory software.

Drachenkaetzchen commented 6 years ago

It's not my job to find you another inventory software.

elekgeek commented 6 years ago

then fuck off and don't tell me what to do next time..

Drachenkaetzchen commented 6 years ago

Additionally, just for clarity: You use a free and open source software maintained by volunteers (mainly me), requesting free support (mainly from me) and then you accuse me of "forcing you into Patreon", then you ask me to find you another software. I do this in my free time, so yes, I do have all right to be angry about you treat people developing software for YOU. Be nice to developers you take from next time.

X3msnake commented 6 years ago

https://partsbox.io

No dia segunda-feira, 1 de outubro de 2018, Felicia Hummel < notifications@github.com> escreveu:

Additionally, just for clarity: You use a free and open source software maintained by volunteers (mainly me), requesting free support (mainly from me) and then you accuse me of "forcing you into Patreon", then you ask me to find you another software. I do this in my free time, so yes, I do have all right to be angry about you treat people developing software for YOU. Be nice to developers you take from next time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/partkeepr/PartKeepr/issues/865#issuecomment-425885706, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-jQgFvB1evZ0xvGJH-6YEbEIlyTZks5uggdDgaJpZM4Nq54A .

-- Com os melhores cumprimentos, Vinicius Silva

elekgeek commented 6 years ago

@Drachenkaetzchen you asked for the Patreon thing and you read the answer, plain and simple. I did not accuse you of anything other than what you have already suggested which is vicious already. You are not alone on this behavior, most of open source projects now are behaving the same, so the open source thing is a crappy trap after all.

I wonder why people are allowed to post issues on github and then you say we are asking for free support, it is an existing feature that has bugs and you are free whether to solve it or not, you could have said I left it on purpose and I don't want to solve it unless you pay, that's fine. But the point is that posting an issue is by itself a contribution.

It is strange how it hurts you when someone asks you to solve an issue that has been reported since ages, and you are not hurt when you post such a project on github for free, you are just contradicting yourself and effort.

No hard feelings, really.. and this is a great project after all.

X3msnake commented 6 years ago

You are doing a great Job Felicia. thanks for your work and for sharing.

No dia segunda-feira, 1 de outubro de 2018, Vinicius Silva < x3msnake@gmail.com> escreveu:

https://partsbox.io

No dia segunda-feira, 1 de outubro de 2018, Felicia Hummel < notifications@github.com> escreveu:

Additionally, just for clarity: You use a free and open source software maintained by volunteers (mainly me), requesting free support (mainly from me) and then you accuse me of "forcing you into Patreon", then you ask me to find you another software. I do this in my free time, so yes, I do have all right to be angry about you treat people developing software for YOU. Be nice to developers you take from next time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/partkeepr/PartKeepr/issues/865#issuecomment-425885706, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-jQgFvB1evZ0xvGJH-6YEbEIlyTZks5uggdDgaJpZM4Nq54A .

-- Com os melhores cumprimentos, Vinicius Silva

-- Com os melhores cumprimentos, Vinicius Silva

Manawyrm commented 6 years ago

@elekgeek You're the one who's behaving absolutely inappropriately. You have started the claim about some sort of crazy plot to bring people onto Patreon.

PartKeepr is developed by (oh wonder) real human beings, in need of food, housing and similar things. If they choose to devote their free time to Open Source projects, they can absolutely freely decide what they want to spend their time on. If you want to get something else done quickly, incentivise it with money (or maybe some other way).

The only thing you're doing at the moment is insulting and offending software developers and harming their morale. Thanks for nothing.

elekgeek commented 6 years ago

@Manawyrm

@elekgeek You're the one who's behaving absolutely inappropriately. You have started the claim about some sort of crazy plot to bring people onto Patreon.

I have not started any claims, Felicia answer's was clear, if you can't see it then no need to accuse me of bringing crazy claims.

PartKeepr is developed by (oh wonder) real human beings, in need of food, housing and similar things. If they choose to devote their free time to Open Source projects, they can absolutely freely decide what they want to spend their time on.

You make it sound as if I forced her to fix anything.

If you want to get something else done quickly, incentivise it with money (or maybe some other way).

The only thing you're doing at the moment is insulting and offending software developers and harming their morale. Thanks for nothing.

I was not the one who started with "Fuck off" thing :)

X3msnake commented 6 years ago

For future reference https://mikemcquaid.com/2018/03/19/open-source-maintainers-owe-you-nothing/

elekgeek notifications@github.com escreveu no dia segunda, 1/10/2018 à(s) 13:39:

@Manawyrm https://github.com/Manawyrm

@elekgeek https://github.com/elekgeek You're the one who's behaving absolutely inappropriately. You have started the claim about some sort of crazy plot to bring people onto Patreon.

I have not started any claims, Felicia answer's was clear, if you can't see it then no need to accuse me of bringing crazy claims.

PartKeepr is developed by (oh wonder) real human beings, in need of food, housing and similar things. If they choose to devote their free time to Open Source projects, they can absolutely freely decide what they want to spend their time on.

You make it sound as if I forced her to fix anything.

If you want to get something else done quickly, incentivise it with money (or maybe some other way).

The only thing you're doing at the moment is insulting and offending software developers and harming their morale. Thanks for nothing.

I was not the one who started with "Fuck off" thing :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/partkeepr/PartKeepr/issues/865#issuecomment-425892204, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-nCMJsFvxwTLIi3439KxGrrooAt3ks5uggz2gaJpZM4Nq54A .

-- Com os melhores cumprimentos, Vinicius Silva

dromer commented 5 years ago

@Drachenkaetzchen It seems holders of this project are leaving bugs for a long time on purpose in order to force people become a Patreon which is bad to the project itself after all. You have absolutely no clue how opensource development works.

The bugs are open because people don't have time to spend fixing them. It's as simple as that. Like @Drachenkaetzchen said you could help contribute so she (as the pretty much the sole maintainer of the project) could spend more time on the project and maybe get around to fix bugs.

jn-simonnet commented 5 years ago

I love people who blame others, pay nothing and just complain like elekgeek.

elekgeek, just try to put yourself in the shoes of Drachenkaetzchen for a minute. If you do it, you will find somebody who developed a piece of SW which I personally am happy to use, precisely because it costs not much, compared to other inventory management SW.

I have been happy to become a Patreon sponsor (modest one) because I thought it was worth encouraging Drachenkaetzchen in her work, and also to see it continue.

If I look at the bug you complain about, your complaints and verbal escalation just sounds ridiculous. You cannot save the mfg logo, so what ? Can you achieve the basic objective of inventory management ? For me, the answer is YES, I CAN.

So I am happily living with the bug, and suggest 👍 1) you do the same 2) You become a Patreon sponsor, which could be a way for Drachenkaetzchen to spend full time on it ! Your bug could then be fixed faster.

This is something YOU can act upon, this is something I decided to act upon when becoming a Patreon sponsor.

christianlupus commented 4 years ago

Although this bug is quite long and emotional, I ask nevertheless: Is it still an issue with the current git version? Can you verify this, please?

baradhili commented 4 years ago

@christianlupus there was a comment above in all the flaming that its still there in 1.4.0

rafaelcamacho commented 3 years ago

Any leads on this error? I was tracking some hint in the code and I wasn't able to. :( Cheers, Rafael

ericmoon commented 3 years ago

Just to confirm, this is still valid and reproducible (not surprising as the code has not been touched in that area for a while.)

Some of us are going through a process now to update the code base to the current, or near-current, version of framework, dependencies, etc. You are welcome to join in on that. As of now, we have a pretty good docker dev environment about to be merged. Discussions are held mostly in irc (freenode / #partkeepr) so hop over there if you want to help or want to have some help tracking down specific bugs.

AGlass0fMilk commented 2 years ago

Still an issue as of 2/22/2022

dromer commented 2 years ago

Please keep it civil.

[offensive and rude comment removed]

Satnet commented 1 year ago

Still an issue 2023-10-14.

stegl commented 1 year ago

yes.. this project is still dead. last update was on Apr 28, 2018 - yes issue is still here and it will not help posting new dates. i dont want to be rude or anything. i would love to help update and fix all the bugs but i dont have knowledge and others dont have interest. sadly because this is a really good tool. its still the best even outdated.