-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception during creation of Media in SM2 #321
Comments
It looks like the category selector tries to persist things before the form handler has prepared relations. |
ok will try later on. It looks like the category selector tries to persist things before the form
|
Hi, I finally have tested again. Got the current webgen code into the module and commented out the category selection in the medium edit template. I have commented out category selection and then the Title validation message like in #410 is gone. However still a new message is there. Media is created, but when being redirected to index.php?module=simplemedia&type=admin&func=view&ot=medium the following error is shown, any idea ? The class nullSimpleMedia_Entity_Collection does not exist, what is that null doing there ? I did trace back as far as I could, but through Doctrine is a bit hard.
|
Or is it Core related, I'm using the current 1.3.6 version. Where the class is just not found, where it should be found. ? |
I doubt this is a core problem... |
I don't really know where to look, what would you suggest to look into in debugging ? |
please, do a text search for nullSimpleMedia_Entity_Collection in your module. |
Ah thanks, didnt think of that
this will not work. This base class is directly coming from the generator. Now I see more of those, also
But that's it, no other nullSimpleMedia... found in the code |
The null value thingy is probably fixed in f20aeef |
I have now removed them manually in the code, so just removed null from the Classnames and then it works. So I can upload media. With categories selection disabled in Medium templates/admin/medium/edit.tpl I have then of course also tried with categories enabled and now it also works 👍 So it seems that this was just the null in the classname problem. Pfew, I can now go ahead and get all the stuff from the MOST 0.5 version into the MOST 0.6.1 version. To get a workable SimpleMedia 2 version again. Thanks. |
Great 😄 |
Is f20aeef already in the webgen ? Then I can test if a fresh generated version does what it should. |
Yes it is. |
Hi,
MOST 060 Final, zk135 target (so not 136), SimpleMedia 2, Zikula135Build20
I get an exception that I cannot understand during creation of a media entity below an already created collection, so calling
http://localhost/zk135b20/index.php?module=simplemedia&type=admin&func=edit&ot=medium&collection=1&returnTo=adminDisplayCollection
Full trace:
The text was updated successfully, but these errors were encountered: