Jump to content

Recommended Posts

20 minutes ago, kongondo said:

That's strange. Point #3 contradicts point #1. Media is only uploaded to that sub-folder if in the setting After Uploading you have selected option 3 (i.e., to keep media in a temporary folder until they have been reviewed). If you have option 1 or 2, the media is uploaded directly to the Media Library. Please confirm the option you have selected in this setting, just in case you are looking at a different setting from the one I am referring to, thanks.

Edit: Please also confirm that you have the latest version (005) Jquery File Upload

Files are uploaded to ..site/assets/MediaManager/jqfu/.files_no_show
Thumbnails are generated in ..site/assets/MediaManager/jqfu/.files_no_showthumbnails
This folder is empty: ..site/assets/MediaManager/uploads

Settings
After Uploading: Add uploads ... not publish (= option 2)

jQueryFileUpload: 0.0.5

Share this post


Link to post
Share on other sites
27 minutes ago, Metaphora said:

Files are uploaded to ..site/assets/MediaManager/jqfu/.files_no_show
Thumbnails are generated in ..site/assets/MediaManager/jqfu/.files_no_showthumbnails
This folder is empty: ..site/assets/MediaManager/uploads

Settings
After Uploading: Add uploads ... not publish (= option 2)

With these settings, the files should only be temporarily uploaded to /site/assets/MediaManager/jqfu/.files_no_show. They are then deleted once they have been copied to the Media Manager Library. The thumbnails also get deleted in that process.  However, if you upload very large images (dimensions or size), the process may time out. In that case you will get the error you are getting (Empty file upload result) . That means the server did not send back a success message in response to the ajax request sent by Jquery File Upload. If you check your browser dev tools as per the image below (under either Preview or Response tab), you should see a similar error. Is this the case for you?

 

media-manager-not-enough-memory-to-load-error.thumb.png.badbaa5e98369ff583defefa9ffe92ec.png

Edited by kongondo
correction

Share this post


Link to post
Share on other sites

"Solved" the problem.

1. Deleted all files in site/assets/MediaManager/jqfu/.files_no_show and thumbnails.

2. Upload a single image.

3. Image is successfully added.

4. Publish image.

5. No image in ..site/assets/MediaManager/jqfu/.files_no_show

As I said, everything was working fine until I tried to upload about 40 files at the same time.
This upload failed after 20 images or so (Empty file upload result).
After this I couldn't upload any file.

So I guess, the problem is caused by the files left behind in jqfu/.files_no_show.

 

Share this post


Link to post
Share on other sites
37 minutes ago, Metaphora said:

"Solved" the problem.

Glad you got it sorted. However, I feel there's still something funky going on. You should still be able to do bulk uploads. OK, maybe not 40 at a time, but 20 or so images. There's also a 'Scan' function if that suits you better.

Share this post


Link to post
Share on other sites

But let's say, an upload fails because of a memory issues ... shouldn't the  files in ..site/assets/MediaManager/jqfu/.files_no_show be automatically deleted?

Share this post


Link to post
Share on other sites
3 hours ago, Metaphora said:

But let's say, an upload fails because of a memory issues ... shouldn't the  files in ..site/assets/MediaManager/jqfu/.files_no_show be automatically deleted?

In that case, technically, the upload has not failed. Files have been uploaded to the temporary folder/../jqfu/.files_no_show. In there, a number of validation checks take place to ensure what is uploaded is valid. Some checks are done by (1) JQFU, others by  (2) ProcessWire's WireUpload and finally by (3) Media Manager. If a file passes validation, it is copied over to the library. Media Manager is responsible for deleting copies of uploaded media in the temporary folder. Since the process times out before reaching step #3, the uploaded media remain in the temporary folder, do not make it to the library, hence MM does not delete the uploaded originals in the temporary folder.

Share this post


Link to post
Share on other sites

Hi,

I've bought Media Manager before a few days and have a question: how can I add files to the media library via the api and how can I add media manager assets to a media manager field via the api? I'm importing a large Wordpress page and have to add a lot of files... 

Thank you, regards

Sebastian

Share this post


Link to post
Share on other sites

Hi @SebastianP,

Thanks for your purchase.

18 hours ago, SebastianP said:

how can I add files to the media library via the api and how can I add media manager assets to a media manager field via the api? I'm importing a large Wordpress page and have to add a lot of files... 

There is no external API to do this. You can have a look at the file MediaManagerActions.php  to see how we do it internally, specifically the methods actionInsert() (adding media to a Media Manager field on a page) and actionCreateMedia() (for creating media from uploaded files).  What is your import process? Do you have all the files available in some directory? Are you not able to import them using Media Manager upload feature?

Share this post


Link to post
Share on other sites

Thanks for your answer! Meanwhile I've imported the files manually ("new Page()... ") - the hint to the "actionInsert()"-method helps me with the rest:-) 

Are you not able to import them using Media Manager upload feature?

No - I want to rebuilt the existing wordpress posts (text, text with image, galleries and so on) with repeater items; so I must tag the files during the import with their ID from the wp_posts table. 

Share this post


Link to post
Share on other sites
2 hours ago, SebastianP said:

Meanwhile I've imported the files manually

Glad you got it sorted :).

Share this post


Link to post
Share on other sites

Hi @kongondo,

I've been getting to know this module and it's really impressive the features you've worked in and all the settings that can be customised.

Just wondering about the behaviour of the MM inputfield though - currently it reloads the whole of Page Edit with each addition to the field, which is not so good if the user has made some edits to other fields but not yet saved the page. They are faced with the option of accepting the reload which would lose the other field edits, or cancelling the reload in which case their media selection is not added.

Maybe you could look at how the PageTable inputfield reloads itself via AJAX when a change is made, and do something similar with the MM inputfield?

  • Like 2

Share this post


Link to post
Share on other sites

Media Manager version 011  (released 20/07/2017)

Happy to announce the latest release of Media Manager.

Changelog

  1. Fixed bug that caused required Media Manager fields to still be labelled as 'missing required value' even when they were populated.

Share this post


Link to post
Share on other sites

Hi @kongondo, I'm running into an issue with the module not displaying properly (screenshot attached).

Also, how can I redownload the module? I'm thinking maybe the module folder is corrupted?

Thanks!

5975ccf2e749a_ScreenShot2017-07-24at12_30_31.thumb.png.5a0182dc5f249593d659eef66e33fe4c.png

Share this post


Link to post
Share on other sites

Hi @onjegolders,

Thanks for your purchase.

Apologies about the issues you are having with the module.

8 hours ago, onjegolders said:

I'm thinking maybe the module folder is corrupted?

Probably. Please try and re-install. Check for any missing files using the Network Tab. The error you see in the console is a pesky one that I've never been able to decipher/get to the root of. For now, we live with it; it doesn't affect anything.

8 hours ago, onjegolders said:

how can I redownload the module?

Please check your email.

Thanks.

Share this post


Link to post
Share on other sites

Hi!

I am having trouble with images not being shown to other users that dont have  superuser role. All images were uploaded by superuser with id 41. 

I added media-manager permissions to the role in question, and then the role to the user, is this enough? Also the options of media manager are configured to show all user images. 

Share this post


Link to post
Share on other sites
31 minutes ago, elabx said:

is this enough?

Hi @elabx. No, it is not. You also need to set up permissions at the template level. This is described here.

Let me know if this helps.

Share this post


Link to post
Share on other sites
3 hours ago, kongondo said:

Hi @elabx. No, it is not. You also need to set up permissions at the template level. This is described here.

Let me know if this helps.

Oh thanks! Another brilliant example of RTFM.

Share this post


Link to post
Share on other sites

I am looking for a clean way to remove the "Media Manager" pages from the top search in the admin for a certain user role. When searching, these pages are being returned and confusing the user that they can edit them instead of using the Media Manager tool. Attached is an image to help describe what I mean. Make note of the page types "Media Manager: ect"

I was thinking a hook using ProcessPageSearch?

Any thoughts or suggestions are appreciated.

 

example

Share this post


Link to post
Share on other sites

This post has a perfect solution if anyone else need it. I will be glad to share my code if needed.

  • Like 2

Share this post


Link to post
Share on other sites
On 18/08/2017 at 8:28 PM, RyanJ said:

This post has a perfect solution if anyone else need it. I will be glad to share my code if needed.

Glad you found a solution. Thanks for helping others.

Share this post


Link to post
Share on other sites

Renewals and Resend Links

Hi,

Renewal and resend links pages for Media Manager have been added. Use renewals if you wish to renew a Media Manager order whose subscription has expired (1 year). Resend are for orders that are yet to expire. Use this if you can't find or didn't get the confirmation email sent after your purchase.

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

I have a question about supported file formats -

I have added 'svg' to valid image file extensions, and this works when using the 'Scan' method to upload files. When I try the JqueryFileUploader, I get an error saying ' Filetype not allowed'

 

Is there any other configuration I need to change to allow svg files to be uploaded as images?

 

Thanks!

Share this post


Link to post
Share on other sites
22 hours ago, Tom H said:

Is there any other configuration I need to change to allow svg files to be uploaded as images?

Thanks for reporting @Tom H. Looking into it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By bernhard
      --- Please use RockFinder3 ---
    • By MoritzLost
      Cacheable Placeholders
      This module allows you to have pieces of dynamic content inside cached output. This aims to solve the common problem of having a mostly cacheable site, but with pieces of dynamic output here and there.  Consider this simple example, where you want to output a custom greeting to the current user:
      <h1>Good morning, <?= ucfirst($user->name) ?></h1> This snippet means you can't use the template cache (at least for logged-in users), because each user has a different name. Even if 99% of your output is static, you can only cache the pieces that you know won't include this personal greeting. A more common example would be CSRF tokens for HTML forms - those need to be unique by definition, so you can't cache the form wholesale.
      This module solves this problem by introducing cacheable placeholders - small placeholder tokens that get replaced during every request. The replacement is done inside a Page::render hook so it runs during every request, even if the response is served from the template cache. So you can use something like this:
      <h1>Good morning, {{{greeting}}}</h1> Replacement tokens are defined with a callback function that produces the appropriate output and added to the module through a simple hook:
      // site/ready.php wire()->addHookAfter('CachePlaceholders::getTokens', function (HookEvent $e) { $tokens = $e->return; $tokens['greeting'] = [ 'callback' => function (array $tokenData) { return ucfirst(wire('user')->name); } ]; $e->return = $tokens; }); Tokens can also include parameters that are parsed and passed to the callback function. There are more fully annotated examples and step-by-step instructions in the README on Github!
      Features
      A simple and fast token parser that calls the appropriate callback and runs automatically. Tokens may include multiple named or positional parameters, as well as multi-value parameters. A manual mode that allows you to replace tokens in custom pieces of cached content (useful if you're using the $cache API). Some built-in tokens for common use-cases: CSRF-Tokens, replacing values from superglobals and producing random hexadecimal strings. The token format is completely customizable, all delimiters can be changed to avoid collisions with existing tag parsers or template languages. Links
      Github Repository & documentation Module directory (pending approval) If you are interested in learning more, the README is very extensive, with more usage examples, code samples and usage instructions!
    • By Craig
      I've been using Fathom Analytics for a while now and on a growing number of sites, so thought it was about time there was a PW module for it.
      WayFathomAnalytics
      WayFathomAnalytics is a group of modules which will allow you to view your Fathom Analytics dashboard in the PW admin panel and (optionally) automatically add and configure the tracking code on front-end pages.
      Links
      GitHub Readme & documentation Download Zip Modules directory Module settings screenshot What is Fathom Analytics?
      Fathom Analytics is a simple, privacy-focused website analytics tool for bloggers and businesses.

      Stop scrolling through pages of reports and collecting gobs of personal data about your visitors, both of which you probably don't need. Fathom is a simple and private website analytics platform that lets you focus on what's important: your business.
      Privacy focused Fast-loading dashboards, all data is on a single screen Easy to get what you need, no training required Unlimited email reports Private or public dashboard sharing Cookie notices not required (it doesn't use cookies or collect personal data) Displays: top content, top referrers, top goals and more
    • By daniels
      This is a lightweight alternative to other newsletter & newsletter-subscription modules.
      You can find the Module in the Modules directory and on Github
      It can subscribe, update, unsubscribe & delete a user in a list in Mailchimp with MailChimp API 3.0. It does not provide any forms or validation, so you can feel free to use your own. To protect your users, it does not save any user data in logs or sends them to an admin.
      This module fits your needs if you...
      ...use Mailchimp as your newsletter / email-automation tool ...want to let users subscribe to your newsletter on your website ...want to use your own form, validation and messages (with or without the wire forms) ...don't want any personal user data saved in any way in your ProcessWire environment (cf. EU data regulation terms) ...like to subscribe, update, unsubscribe or delete users to/from different lists ...like the Mailchimp UI for creating / sending / reviewing email campaigns *I have only tested it with PHP 7.x so far, so use on owners risk
      EDIT:
      Since 0.0.4, instructions and changelog can be found in the README only. You can find it here  🙂
      If you have questions or like to contribute, just post a reply or create an issue or pr on github, thanks!
    • By MoritzLost
      Sorry for the convoluted title. I have a problem with Process modules that define a custom page using the page key through getModuleInfo (as demonstrated in this excellent tutorial by @bernhard). Those pages are created automatically when the module is installed. The problem is that the title of the page only gets set in the current language. That's not a problem if the current language (language of the superuser who is installing the module) is the default language; if it isn't, the Process page is missing a title in the default language. This has the very awkward effect that a user using the backend in the default language (or any other language) will see an empty entry in the setup menu:

      This screenshot comes from my Cache Control module which includes a Process page. Now I realize the description sounds obscure, but for us it's a common setup: We a multiple bilingual sites where the default language is German and the second language is English. While the clients use the CMS in German, as a developer I prefer the English interface, so whenever I install a Process module I get this problem.
      As a module author, is there a way to handle this situation? I guess it would be possible to use post-installation hooks or create the pages manually, but I very much prefer the declarative approach. The page title is already translatable (through the __ function), but of course at the time of installation there is no translation, and as far as I'm aware it's not possible to ship translations with a module so they are used automatically. Could this situation be handled better in the core? I would prefer if the module installation process would always set the title of the Process page in the default language, instead of the language of the current user.
×
×
  • Create New...