Partkeepr: Error saving manufacturer's logo

Created on 31 May 2017  ·  24Comments  ·  Source: partkeepr/PartKeepr

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 PartKeeprManufacturerBundleEntityManufacturer::removeIcLogo() must be an instance of PartKeeprManufacturerBundleEntityManufacturerICLogo, instance of Proxies__CG__PartKeeprImageBundleEntityTempImage 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

  • PartKeepr Version: 1.2.0
  • Reproducible on the demo system: Yes.
Base Functionality Bug Low Priority

Most helpful comment

@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.

All 24 comments

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

Also happens here

`An error occurred

Details

Expected argument of type "PartKeeprManufacturerBundleEntityManufacturerICLogo", "Proxies__CG__PartKeeprImageBundleEntityTempImage" 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\ManufacturerICLogou0022, u0022Proxies\__CG__\PartKeepr\ImageBundle\Entity\TempImageu0022 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]
`

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

An error occurred

Details

Expected argument of type "PartKeeprManufacturerBundleEntityManufacturerICLogo", "Proxies__CG__PartKeeprImageBundleEntityTempImage" 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\ManufacturerICLogou0022, u0022Proxies\__CG__\PartKeepr\ImageBundle\Entity\TempImageu0022 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]

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

thank you

@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

@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 <
[email protected]> 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

@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.

@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.

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.

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

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

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.

https://partsbox.io

No dia segunda-feira, 1 de outubro de 2018, Felicia Hummel <
[email protected]> 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

@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.

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 <
[email protected]> escreveu:

>

https://partsbox.io

No dia segunda-feira, 1 de outubro de 2018, Felicia Hummel <
[email protected]> 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

@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.

@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 :)

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

@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.

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.

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?

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gfarcas picture gfarcas  ·  20Comments

HolgerHeckeroth picture HolgerHeckeroth  ·  4Comments

christianlupus picture christianlupus  ·  55Comments

kgabryszewska picture kgabryszewska  ·  8Comments

JoarGjersund picture JoarGjersund  ·  12Comments