thomaskieslich / TYPO3.tkcropthumbs

TYPO3 Extension
1 stars 1 forks source link

Strange fatal error in T3 6.2.1 #4

Closed robartde closed 10 years ago

robartde commented 10 years ago

Hi, I made an update from 4.5 to 6.2.1, all works fine except of tkcropthumbs 6.2.6 which shows a really strange behaviour: I use it in two pages to crop images in image content elements for a standard thumbnail gallery. This works. But in some other pages where I do not use this extension Typo3 will break in an empty white page with the folliwing error message in error log:

PHP Fatal error: Call to a member function getProperties() on a non-object in [...]typo3conf/ext/tkcropthumbs/Classes/Services/Ttcontent.php on line 80, referer:[...]

I uninstalled tkcropthumbs extension, deleted directory, all extension-related database columns and started a new attempt. But directly after installing extension from repository (I did not edit any content) the error shows up again in the same pages. Without tkcropthumbs the pages are shown without a problem.

Any idea?

Edit1: Made a workaround by checking whether there is an object before creating "$currentFileProperties".

Edit2: I tried it on another server with 6.2.1 & 6.2.2 (without object-check workaround). Image rendering works extremly slow. Changing size and position of cropping area in BE-wizard has no effect on both servers, Only aspect ratio works. It seems that "$fileReference" is empty.

robartde commented 10 years ago

Made a new attempt on a newer server (Debian Wheezy) with T3 6.2.3 and same extension version tkcropthumbs 6.2.6. Now it works, no more errors. After downgrade to T3 6.2.2 it also works So I guess, reason for the error was in the server configuration or I made a mistake in T3 configuration before. This issue can be closed.