CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #29187

Backend Module

Added by Achim Grützmacher almost 2 years ago. Updated over 1 year ago.

Status:Resolved Start date:2011-08-23
Priority:Should have Due date:
Assignee:Achim Grützmacher % Done:

0%

Category:-
Target version:-
Votes: 0

Description

It is impossible to delete galeries or albums without a thumb in the backend-module. The error occurs: Fatal error: Call to a memeber function delete()on a non-object in /...(path.../ext/yag/Classes/Domain/Album.php o line 439.

Config: Typo3 4.5.5 yag 1.2.0

History

Updated by Achim Grützmacher almost 2 years ago

If galeries or album have a thumb, deleting them gives an empty error-message in the backend. You have to refresh the screen and what you have deleted is gone. That is irritating for the normal backend-user.

Updated by Daniel Lienert over 1 year ago

  • Assignee set to Achim Grützmacher

Hey Achim,

I tried to reproduce your error with a new installation on 4.5.5 with an admin and an unprivileged user. But i was not able to reproduce your error. Everything works as intended. And i never experienced something like that before.

Are there any specialities about your installation? Wich extbase version are you using?

Greetings,
Daniel

Updated by Achim Grützmacher over 1 year ago

Hallo Daniel,

thanks for your answer. The extbase version is v1.3.1-devel.

Greetings, Achim

Updated by Daniel Lienert over 1 year ago

  • Status changed from New to Needs Feedback

Ok ... maybe then the problem is an unstable extbase-devel - or changes in the official or private API of your devel version.
Unfortunately, we have not the time to test the plugin against a changing devel version of extbase or fluid. If posible, please test the plugin with extbase / fluid 1.3.0.

If you are able to isolate the problem, we would realy appreciate to know about your findings.

Greetings
Daniel

Updated by Achim Grützmacher over 1 year ago

Hallo Daniel,

fortunately the fix $TYPO3_CONF_VARS['BE']['compressionLevel'] = '0'; works here, too. The empty error messeages are not there any more and I get the green approval of deletion. But still it is not possible to delete galleries or albums without thumbs (see above). But as a FAQ-workaround this is a good information, I think, for it seems to solve the import-issue of Boris and me aswell.

Do you have problems with the compression level? It is a nice feature...

Greetings, Achim

Updated by Michael Voehringer over 1 year ago

Hi, I have the same error and its fixed, if you replace line 439/440 in /yag/Classes/Domain/Album.php with:

if($this->thumb){
    $this->thumb->delete();
    $this->thumb = null;
}

Updated by Daniel Lienert over 1 year ago

  • Status changed from Needs Feedback to Under Review

Hey Michael,

Thank you for pointing that out! I already fixed this issue in the master branch of our git repository on git://github.com/michaelknoll/yag.git. Maybe you have some spare time to test this version. I would appreciate your feedback.

Greetings
Daniel

Updated by Michael Voehringer over 1 year ago

You fixed the problem on my system. Thanks

Updated by Daniel Lienert over 1 year ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF