4 users online. Create an account or sign in to join them.Users
Mediathek 2 (discontinued)
This is an open discussion with 354 replies, filed under Extensions.
Search
Thanks for the assistance Nils. I can see that the upload field works now, but there are a couple of other things:
- Previewing doesn’t seem to work for me. When I click the little + it doesn’t do anything.
- After selecting an item under Edit, closing the edit menu, and then going back to edit, the selected item is technically still selected but not highlighted, and the cursor is the grabby hand rather than the pointer, but the entry can’t be moved at all.
Question No. 1: Did you uninstall (not disable) the extension before you updated? A step which is only nesseccary if you had installed the beta before. (Version 1.x to 2.0 beta should work without disabling.)
Question No. 2: Did you clear your cache?
If you can answer both question with yes: Do you get any javascript related errors?
Found this error when I attempt to preview an item:
Error: syntax error
Source File: http://*******/extensions/mediathek/assets/mediathek.js
Line: 494, Column: 10
Source Code:
({ width: , height: , jit: 1})
I did uninstall the extension, I believe. And since I first updated I have uninstalled and reinstalled it a few times to check.
Okay, so the width and height of the image is missing in the markup - that’s why the preview does not work.
The dimensions of all images is retrieved via an AJAX request to /extensions/mediathek/content/content.caption.php which calls Symphony’s internal entry manager.
Can you please check in your database if the column meta in the table containing your upload field’s data (sym_entries_data_FIELDID) contains something similar to this:
a:3:{s:8:"creation";s:25:"2009-08-15T14:38:18+02:00";s:5:"width";i:337;s:6:"height";i:450;}
I just pushed some changes to GitHub which should offer a fallback in case of missing image dimensions.
For some reason no information about any of the files I’ve uploaded with Mediathek are being related to the entry. Here’s an example of my XML:
<portfolio>
<section id="8" handle="projects">Projects</section>
<entry id="13">
<client-type>
<item handle="professional">Professional</item>
</client-type>
<date time="12:00" weekday="1">2005-08-01</date>
<media />
<title handle="rossignol-static-web-banners">Rossignol Static Web Banners</title>
<medium>
<item handle="web">Web</item>
</medium>
</entry>
</portfolio>
<portfolio-media>
<section id="7" handle="media">Media</section>
<entry id="22">
<description handle="horixontal-rossignol-web-banner">Horixontal Rossignol web banner</description>
<image size="106 kb" path="/uploads" type="image/jpeg">
<filename>rossi-banner-hor-1.jpeg</filename>
<meta creation="2009-08-27T14:23:14-04:00" width="783" height="650" />
</image>
<title handle="rossignol-web-banner-1">Rossignol Web Banner 1</title>
</entry>
</portfolio-media>
The first data source is the projects, the second is just to show that the files are uploading just fine. However, as you can see in the first entry, the “media” node is empty. That’s where all the information, I would imagine, should be.
The files are selected when I create an entry so that’s not the problem. I have the latest version of the Mediathek beta and the latest stable release of Symphony (2.0.6).
I’m running the plugin locally so I can’t give you a login to poke around with but let me know what info you need and I’ll try to get it.
Simple question first: Did you select fields for the data source output in the field settings panel?
Yep. All three forms have been selected. Just in case you ask I’ve told it to allow selecting of multiple options, and it has the custom item caption of “{$title}”.
I see that I can now drag the image into a text area but I’m not using these images in that manner. I’m planning on using them as part of a slideshow. That’s not the issue, is it?
[edit] I checked and there are no javascript errors going on, though I didn’t expect there to be since the data is being created it’s just not being associated with the project.
A few other question:
- Is this a clean install with the current beta code or is it an update from version 1.x or one of the earlier revisions of the beta?
- Are you using one or multiple instances of the field in your section?
- Which of your media section fields are selected for data source output? All three?
- The interface behaves as expected?
I see that I can now drag the image into a text area but I’m not using these images in that manner. I’m planning on using them as part of a slideshow. That’s not the issue, is it?
Dragging has been possible in version 1.x, too, so this is nothing special in connection with this field. You always have three options: dragging all needed images to your textarea, just selecting your images in the Mediathek or doing both.
Hmm, I suspect my problems may come from having an earlier beta on there. I’ve just tried installing it locally and it works without fault. Is there any way to completely clear any trace of Mediathek from the problem system before reinstalling it?
It’s a great extension Nils, I hope I can get it to work!
Is this a clean install with the current beta code or is it an update from version 1.x or one of the earlier revisions of the beta?
This is an upgrade of a previous beta build but I disabled and uninstalled it before I uploaded and enabled the newer version.
Are you using one or multiple instances of the field in your section?
One instance.
Which of your media section fields are selected for data source output? All three?
Yes, all three are currently selected.
The interface behaves as expected?
Mostly. When a new entry is created it’s not selected by default. I have to save the entry and then select the image. This was an issue with the 1.0 version of Mediathek for a while as well and I’ve not really thought too much of it.
If you want to clean up, uninstall the extension and see if the following tables have been deleted:
- sym_field_mediathek
- sym_entries_FIELDID
Clear your browser cache. Delete the mediathek folder and upload the latest beta version.
Done and still no success. Anything else I can try?
Seem to be getting this error Nils:
http://********/symphony/extension/mediathek/lang/?CLOSE=Close&CREATE=Create+New&EDIT=Edit&EMPTY=There+are+currently+no+items+selected.&ERRORRELOAD=An+error+occured+while+trying+to+select+the+new+item.+Please+reload+the+page.&ERRORMANUALLY=An+error+occured+while+trying+to+add+the+new+item.+Please+reload+the+page+and+select+the+new+item+manually.&LOADING=Loading+Data+%26%238230%3B&NEW=New+Entry+%23&RESET=Reset&RESETENTRY=Reset+this+entry&SEARCH=type+and+search
Also, the upload works in Safari if you use the Unique Upload extension for some reason, so the problem is half-solved!
EDIT: Lame double post. I fail at clicking the submit button.
http://********/symphony/extension/mediathek/lang/?CLOSE=Close&CREATE=Create+New&EDIT=Edit&EMPTY=There+are+currently+no+items+selected.&ERRORRELOAD=An+error+occured+while+trying+to+select+the+new+item.+Please+reload+the+page.&ERRORMANUALLY=An+error+occured+while+trying+to+add+the+new+item.+Please+reload+the+page+and+select+the+new+item+manually.&LOADING=Loading+Data+%26%238230%3B&NEW=New+Entry+%23&RESET=Reset&RESETENTRY=Reset+this+entry&SEARCH=type+and+search
That’s not an error. It’s just a log of a AJAX request that loads all needed language strings for the extension (and the needed error messages, too).
@Throlkim: Which half of the problem is currently unsolved. Not that I mix up things …
I just found a stupid bug with database prefixes. Could you both please download the latest version from GitHub? Maybe that helps. Thanks!
PS: You just have to replace the files - no uninstalling or similar needed.
Everything is showing up in the data source now! I’m guessing that did it. Thanks for the quick response!
Fine! Good to see it working now.
Create an account or sign in to comment.
There is an upgrade function from version 1.x to version 2.0. I just don’t recommend it as it involves some fundamental data base changes and because things often seem to be broken due to browser caching.
As for all updates there should be a clear guideline for everyone: Backup your system first!