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

Error 500 after creating an application #374

Closed The-Luz closed 7 years ago

The-Luz commented 7 years ago

When submitting an application i get an error 500.

PHP Fatal error: Call to a member function getUri() on null in .../yawik/htdocs/module/Applications/src/Applications/Controller/ApplyController.php on line 316

cbleek commented 7 years ago

Which version are you using?

The is a getUri() call. But in Line 319 (master/develop)

https://github.com/cross-solution/YAWIK/blob/develop/module/Applications/src/Applications/Controller/ApplyController.php#L319

it seems, there is a problem with rthe fileupload.

The-Luz commented 7 years ago

We are using v0.29 (master) an i get the error on your demo database too. Also happens without any attached files.

Here is our ApplyController (renamed to .txt to upload it here) ApplyController.txt

Test on yawik.org/demo: erroryawik2

The-Luz commented 7 years ago

After further investigating and resolving of other problems, we found that it fails in YAWIK/module/Applications/view/applications/apply/index.phtml in Line 29 where he trys to get the organization image. We have temporarily removed that line so that the useres can at least submit the application without an error.

cbleek commented 7 years ago

Do you have php-gd installed? Since 0.29 YAWIK uses imagine für resizing organization logos. Imagine requires an image manipulation library like "php-gd" or "php-imagick".

TiSiE commented 7 years ago

Image manipulation is only done when uploading a new organization image. So it is very unlikely that is the issue here.

It's just that the organizationImageCache is null, when it should be an object.

TiSiE commented 7 years ago

fix will be included in 0.29.1