cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
125 stars 67 forks source link

Second step for new job sometimes broken #100

Closed mbo-s closed 9 years ago

mbo-s commented 9 years ago

Steps to reproduce: create a new job and for the Companyname choose some random text, do not select the autocomplete and then use the enter key (not the save button). The Company name is saved and if you click "next to enter the job" you will only see "An error occurred An unexpected error had occured. Please try again later.".

The TemplateController tries to fetch data from the organization, but in this case there is no data available

2015-03-11 01:14:26 NOTICE Trying to get property of non-object (errno 8) in /YAWIK/module/Jobs/src/Jobs/Controller/TemplateController.php on line 183 2015-03-11 01:14:26 ERR Argument 1 passed to Jobs\Controller\TemplateController::getOrganizationLogo() must be an instance of Organizations\Entity\Organization, null given, called in /YAWIK/module/Jobs/src/Jobs/Controller/TemplateController.php on line 187 and defined (errno 4096) in /YAWIK/module/Jobs/src/Jobs/Controller/TemplateController.php on line 199

cbleek commented 9 years ago

This happens, if there is wrong logo reference stored in an organization.

The problem can propably be fixed by checking the $organization->image in

https://github.com/cross-solution/YAWIK/blob/develop/module/Jobs/src/Jobs/Controller/TemplateController.php#L201

mbo-s commented 9 years ago

The logo reference is not the problem. there is no organization: https://github.com/cross-solution/YAWIK/blob/develop/module/Jobs/src/Jobs/Controller/TemplateController.php#L187

utrenkner commented 9 years ago

I confirm this bug - both in the online demo (v0.17.2-145-g6316b43) and in my local installation (v0.17-4-g02a53f0). It happens EVERY time, I try to create a new job.

cbleek commented 9 years ago

Creating of job opening works again since 0.18. Thanks for reporting