grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[Bug]: Demo pages are not loading - Aviary problem suspected

Open ADTC opened this issue 8 years ago • 9 comments

Similar to #1140 but it is in Firefox 60.0.1 (64-bit) and the Console spits out the following:

On Webpage Demo:

ReferenceError: Aviary is not defined[Learn More] grapesjs-preset-webpage.min.js:14:1130
	t.default< https://grapesjs.com/js/grapesjs-preset-webpage.min.js:14:1130
	t.default< https://grapesjs.com/js/grapesjs-preset-webpage.min.js:2:3485
	init/< https://grapesjs.com/js/grapes.min.js:2:362237
	forEach self-hosted:261:13
	init https://grapesjs.com/js/grapes.min.js:2:362190
	<anonymous> https://grapesjs.com/demo.html:968:21

On Newsletter Demo:

ReferenceError: Aviary is not defined[Learn More] grapesjs-aviary.min.js:2:929
	<anonymous> https://grapesjs.com/js/grapesjs-aviary.min.js:2:929
	init/< https://grapesjs.com/js/grapes.min.js:2:362237
	forEach self-hosted:261:13
	init https://grapesjs.com/js/grapes.min.js:2:362190
	<anonymous> https://grapesjs.com/demo-newsletter-editor.html:544:20
  1. Are you using the latest release (older versions are NOT supported)? Don't know
    1. If you're not sure, type grapesjs.version in console and press ENTER
  2. Are you facing the bug with your local copy of GrapesJS or with the current demo? Demo
  3. If a local copy
    1. Indicate all informations about your OS, browser and GrapesJS version. Windows 10, Firefox 60.0.1 (64-bit)
    2. Are you able to reproduce the bug from the demo? Yes
  4. What is the expected behavior? Working Demo
  5. What happens instead? Blank page (ad shown if do-not-track disabled)
  6. If you're able to reproduce the bug indicate all the necessary steps > Visit demo page
  7. Attach screenshots (using KAP/LICEcap), screencasts or live demo > Necessary?
    1. JSFiddle Starter template https://jsfiddle.net/szLp8h4n
    2. CodeSandbox Starter template https://codesandbox.io/s/1r0w2pk1vl

ADTC avatar Jun 02 '18 03:06 ADTC

Hmmmmmm the problem appears to have gone away after I posted this. I had refreshed several times before and it was still there before.

If you think there's nothing to fix, please feel free to close.

ADTC avatar Jun 02 '18 03:06 ADTC

i had the same issue .

just install this chrome extension called HTTPS Everywhere .

the blank page is because of some security risk of mixture of http and https requests and browsers will load the page but showing nothing . the error is reported in console you can see .

but be careful on other sites other than grapejs editor and disable this extension .

after installing this extension and enabling it my problem solved.

thesecondaithinks avatar Jun 05 '18 19:06 thesecondaithinks

This is just because you're requesting the page under HTTPS and https://feather.aviary.com/imaging/v3/editor.js has invalid certificate (you have to accept it explicitly before) I'll make some further improvements to avoid breaking the editor

artf avatar Jun 05 '18 22:06 artf

So, there are demos on the frontpage of the site that simply doesn't work without us having to go through hoops and loops. Why don't you simply fix the pages on the website!?

blaasvaer avatar Jun 06 '18 07:06 blaasvaer

Still we are facing this issue.

NaveenDA avatar Jun 06 '18 07:06 NaveenDA

For now, if you're requesting the site over HTTPS you get the error until you don't accept the certificate otherwise it's all ok. Indeed, I'm not forcing right now HTTPS so it's something on your side.

Why don't you simply fix the pages on the website!?

@blaasvaer my friend, the site is here, open-sourced also for you https://github.com/artf/grapesjs/tree/gh-pages PRs are welcome, now I'm using my spare time replying and helping others with Issues. The fix could also be: download http://feather.aviary.com/imaging/v3/editor.js, put it inside the js directory of the site and require it from there

artf avatar Jun 07 '18 23:06 artf

Erhm, so you're asking me to change the links on your(?) website from https to http so that the demos will work?

blaasvaer avatar Jun 08 '18 07:06 blaasvaer

@blaasvaer welcome to open source 😂

artf avatar Jun 08 '18 20:06 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 17 '19 13:09 lock[bot]