Keyword

media manager blank - plus cannot upload or browse for image

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 week ago #171963 by Thomas Phillips
Any advice welcomed - error reporting only shows errors for deprecated extensions

maybe it is jquery?

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 week ago #171964 by Thomas Phillips
console errors are

index.php:13 Resource interpreted as Stylesheet but transferred with MIME type text/html: "www.lancasterathletics.co.uk/component/users/?view=login&return=aHR0cDovL3d3dy5sYW5jYXN0ZXJhdGhsZXRpY3MuY28udWsvbWVkaWEvazIvYXNzZXRzL3ZlbmRvcnMvc3R1ZGlvLTQyL2VsZmluZGVyL2Nzcy90aGVtZS5jc3M/dj0yLjkuMA==&Itemid=101".
index.php:12 Resource interpreted as Stylesheet but transferred with MIME type text/html: "www.lancasterathletics.co.uk/component/users/?view=login&return=aHR0cDovL3d3dy5sYW5jYXN0ZXJhdGhsZXRpY3MuY28udWsvbWVkaWEvazIvYXNzZXRzL3ZlbmRvcnMvc3R1ZGlvLTQyL2VsZmluZGVyL2Nzcy9lbGZpbmRlci5taW4uY3NzP3Y9Mi45LjA=&Itemid=101".
jquery-migrate.min.js?a574e2a1109ab41be2ffd9d9b719203d:2 JQMIGRATE: Migrate is installed, version 1.4.1
?view=login&return=aHR0cDovL3d3dy5sYW5jYXN0ZXJhdGhsZXRpY3MuY28udWsvbWVkaWEvazIvYXNzZXRzL3ZlbmRvcnMvc3R1ZGlvLTQyL2VsZmluZGVyL2pzL2VsZmluZGVyLm1pbi5qcz92PTIuOS4w&Itemid=101:1 Uncaught SyntaxError: Unexpected token <
index.php?option=com_k2&view=media:413 Uncaught TypeError: $(...).elfinder is not a function
at HTMLDocument.<anonymous> (index.php?option=com_k2&view=media:413)
at u (jquery.min.js?a574e2a1109ab41be2ffd9d9b719203d:2)
at Object.fireWith [as resolveWith] (jquery.min.js?a574e2a1109ab41be2ffd9d9b719203d:2)
at Function.ready (jquery.min.js?a574e2a1109ab41be2ffd9d9b719203d:2)
at HTMLDocument._ (jquery.min.js?a574e2a1109ab41be2ffd9d9b719203d:2)

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 days ago #171967 by Thomas Phillips
've uploaded the 2.9.1 dev version

this at least allows media manager to display

but still I cannot save images to items

after saving it displayed an unformulated page like this (with image details not saved)

Items
Categories
Tags
Comments
Users
User Groups
Extra Fields
Extra Field Groups
Media Manager
Information
K2 v2.9.1 [Dev Build]
Copyright © 2006-2019 JoomlaWorks Ltd.

Please Log in or Create an account to join the conversation.

More
6 years 4 days ago #171990 by JoomlaWorks
Have you checked permissions on the server? Under System Information in Joomla, you can check the permissions for common folders. If most appear in red color, then there is probably an ownership issue for files and folders and your hosting company should correct it.

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 days ago #171999 by Thomas Phillips
Hi - all writable apart from configuration.php

previous images seem to be in

www.lancasterathletics.co.uk/media/k2/items/cache/

do I need to check permissions on that folder?

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 days ago #172000 by Thomas Phillips
If I use the browse option (which allows me to upload since updating to the dev versions) I can select an image. But it doe not save. It goes to an unformulated page as mentioned previously. So for some reason the image data field is not saving.

Please Log in or Create an account to join the conversation.

More
6 years 4 days ago #172004 by JoomlaWorks
OK, first things first. When you use the "Image Gallery" tab in K2, all the uploaded images are moved into /media/k2/galleries/ (in subfolders based on each item's ID). The reason this is done is similar to how images upload via the "Image" tab are moved into /media/k2/items/: keep the media out of the users reach so no accidents happen (e.g. deleted media). This kills re-usability, but experience has shown that content managers usually upload new images and most times keep a pool of media/images under /images in Joomla, if they want to re-use something.

Now, if you create "regular" image galleries using the "Simple Image Gallery Pro" editor button, then these image galleries will be stored under the "root path" that you've defined in SIGPro's component settings (the default is /images/).

I hope you see the distinction already between the 2 ways of inserting an image gallery in K2.

As for the errors you get, these are JS related and they could be caused by other plugins that can load in K2 pages (e.g. system or third-party K2 plugins).

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 3 days ago #172006 by Thomas Phillips
Hii - thanks for that. The problem is with the main image for the item (2nd tab "image")

this is the intro image for the item in effect so is important. Any ideas about that. I have disabled all plugins that are related to k2 that were showing deprecation errors.

Please Log in or Create an account to join the conversation.

More
6 years 3 days ago #172009 by JoomlaWorks
Can you share 2 screenshots please? One with the form after you save the item and one with the browser dev tools in a separate window, again after the item is saved.

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 3 days ago #172017 by Thomas Phillips
here are screenshots
Attachments:

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
6 years 21 hours ago #172028 by Thomas Phillips
I'm still looking for a fix for this? Any help really appreciated!

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #172047 by JoomlaWorks
Try the 2.10 dev build uploaded just yesterday at: github.com/getk2/k2/archive/master.zip

A 500 error indicates a server issue. If the issue still occurs, it could be a third-party K2 plugin that is not up to date with PHP, K2 or Joomla.

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
5 years 11 months ago #172050 by Thomas Phillips
Still showing the error - what is the best way of identifying the plugin?

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago - 5 years 11 months ago #172052 by JoomlaWorks
Disable all 3rd party system plugins that do not belong to Joomla or K2 and then check again that page. Then, start enabling each plugin one by one until you find which one breaks the output.
Last edit: 5 years 11 months ago by JoomlaWorks.

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
5 years 11 months ago #172065 by Thomas Phillips
I have tried that for "adminsitrator" extensions (is that correct i it is an error in the admin part of the site)

error still happening

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #172066 by JoomlaWorks
Only modules are filtered for "site" and "administrator". You need to disable "Plugins" of "System" type.

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
5 years 11 months ago #172067 by Thomas Phillips
there are very few non joomla and k2 plugins - I have disabled them as below - error still occuring!
Attachments:

Please Log in or Create an account to join the conversation.

  • Thomas Phillips
  • Thomas Phillips's Avatar Topic Author
  • Offline
  • New Member
More
5 years 11 months ago #172071 by Thomas Phillips
the error seems to be related to image size - it now works with smaller images

even if the larger image is on the server already the error occurs

so looks like a k2 issue/server conflict

why such a unhelpful error though page ?

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #172080 by JoomlaWorks
First off, the Media Manager in K2 is a third-party solution integrated into K2.

Secondly, the original error indicated broken JS in the Media Manager. If the issue is resolved, I doubt it's the image size (you'd probably get a limit error if reached). One of the plugins that you disabled allowed JS to function properly in the Media Manager.

In any case, clear your browser's console, visit the Media Manager and attempt to upload a "larger" image that you said previously error-ed and see what the console outputs.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #173459 by blue_Shift
thanks. the dev 2.10 fixed the issue for me.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum