×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: SyntaxError when uploading image

SyntaxError when uploading image 8 years 5 months ago #32781

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Hello everyone,

I have a little problem, I can't upload images through hotspots "Picture" form. Same error comes in backend and frontend.
SyntaxError: Unexpected token <
Screenshot:


Also I have few quick questions:
1. How can administrator edit spots in frontend? I don't see Edit button like in Joomla Articles.
2. Is there a possibility to display all spots from a category same way like "User hotspots". I just want to make frontend spots management friendly for my frontend administrators. :D
3. Last one: How can I display hotspots just as a list. Is this possible?

Sincerely,
Thomas
Attachments:

SyntaxError when uploading image 8 years 5 months ago #32802

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Tomasz,
You haven't provided an url and that's why I cannot give you the exact reason for the error. Most probably something on the server (another plugin or so) is breaking and getting in the way of our request.

1. You will be able to do this in the next version. In a matter of fact this feature is already in the latest dev. release. So If you want to test it download the latest dev. release.

2. No, we don't have a list display. But as I said in the latest version we have frontend moderation and there you get a list with all hotspots

3. We don't have a list display.

Regards,
Daniel

SyntaxError when uploading image 8 years 4 months ago #32861

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Thank You for answer Daniel. I checked my plugins and I have same error and then I thought, maybe i'll check upload with jpg instead of png... and it worked properly. I get this error when I upload png only. Any sugesstions? :)

SyntaxError when uploading image 8 years 4 months ago #32864

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You didn't post the error.

SyntaxError when uploading image 8 years 4 months ago #32865

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Still same error Daniel: SyntaxError: Unexpected token < :)

SyntaxError when uploading image 8 years 4 months ago #32871

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You are uploading a PNG? Can you go to your global config (joomla's global config) to the server tab and set error reporting to none?
Can you try uploading after that. The upload of a png triggers are notice. If you have error reporting on this notice breaks our ajax response.(this is already fixed for the next version) If you set error reporting to none, then it should be fine.

If you are still having the issue after that, then I would need access to the site to look at the issue myself.

Regards,
Daniel

SyntaxError when uploading image 8 years 4 months ago #32874

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Uploading, a "png". So I turned off the error reporting and then I can upload png (seems so) - image 1. But if You look closely they don't have thumbnails. After saving I see the Image not found. Now this doesn't happen to gif or jpg. That's weird. Btw: I have diffrent problem with mgThumbnails extension that makes my transparent png background black but thats diffrent problem. Let me know if You have anymore tips for me. If not I'll send You access to the site. :)

Sincerely,
Thomas
Attachments:

SyntaxError when uploading image 8 years 4 months ago #32875

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Okay, just wait for the next version. The problem is already fixed and I'll release a new dev. release shortly (working on search in a given radius right now).

regards,
Daniel

SyntaxError when uploading image 8 years 4 months ago #32877

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Awesome, thank You Daniel. Have a nice day. :)

SyntaxError when uploading image 8 years 4 months ago #32886

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I've pushed a new dev. release now. You can try with it if you are in a hurry. The png upload should work and thumbnails should be generated as well.

Regards,
Daniel

SyntaxError when uploading image 8 years 4 months ago #32887

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Tested it and now png works :) will You be able to fix the tour also? I think that You could just do it that sidemenu slides out (if closed) after pressing next and then the second step shows up - that would be cool and the rest of tour would be valid. Anyway I also saw that You changed name to title in form.php :D Personally I added Cancel button because I teach my users to always Save or Cancel articles in Joomla not going back or clicking diffrent link cause of article saving/blocking in Joomla. It's just back script but I want them to be consistant. :D - screenshot 1

Now what's up with that? :D - screenshot 2
I am ending my labor in half an hour, so have a nice night :D
Attachments:

SyntaxError when uploading image 8 years 4 months ago #32892

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, I'll fix the tour bug! One thing at a time :)

About the second screenshot. Just go to your configuration in the backend. Hotspots -> dashboard -> options. Save it again. After that the sql error shouldn't happen.

I had to change name to title (required for some joomla APIs), and we now also have an alias field (that's not used for the url right now, but we will move to it).

So your cancel button is doing what exactly? Just going back? It's not that simple. If the user has clicked once on save and they got an error, then some of the information they entered is saved in the session. Going back won't delete that information and if they try to fill in the same session, then the old information would be still there.

Regards,
Daniel
The following user(s) said Thank You: Tomasz Kolasa

SyntaxError when uploading image 8 years 4 months ago #32895

  • Tomasz Kolasa
  • Tomasz Kolasa's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
I didn't think about the session stuff... Well in spare time maybe I'll come with something more sophisticated. :)
Everything works, thanks Daniel.

Greetings from Poland :)
  • Page:
  • 1
Time to create page: 0.152 seconds