Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 Words and not able to post? #17

Open
itawde opened this issue Jan 4, 2014 · 11 comments
Open

0 Words and not able to post? #17

itawde opened this issue Jan 4, 2014 · 11 comments
Assignees
Labels

Comments

@itawde
Copy link

itawde commented Jan 4, 2014

After installing Gust 0.3.1 on my web server (Debian, Nginx, PHP 5.4) the editor does load, but when I add want to add a new post the preview window always shows "0 words" and when clicking on "Update Post" nothing is happening.

When loading the editor with Firebug open however there's a JS error:


TypeError: jQuery(...).upload is not a function
jQuery('.js-drop-zone').upload({editor: true});

in gust.js?v=0.0.1 (Line 631)

Not sure if that already might be the reason for it. Anyhow right now I'm not able to use the editor at all which is kind of a shame.

Any hints are appreciated :)

@ghost ghost assigned ideag Jan 4, 2014
@ideag
Copy link
Owner

ideag commented Jan 4, 2014

Hi @itawde , thanks for reporting!

the error you are showing indicates one of javascript libraries is not loaded.

Could you confirm if yourdomain.com/wp-content/plugins/wp-ghost/assets/jquery-fileupload.js?v=0.3.3 loads correctly?

Also, just on a hunch - does adding an error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); at the beginning of gust.php (around line 10) help with the problem?

@itawde
Copy link
Author

itawde commented Jan 4, 2014

Hi,

jquery-fileupload seems to be loading. At least it shows up within the generated source code :)

Adding the error_reporting to gust.php didn't change anything. Behaviour stays the same, also no additional (error) output.

@ideag
Copy link
Owner

ideag commented Jan 4, 2014

Hi again,

Is the output of http://yourdomain.com/wp-content/plugins/gust/assets/jquery-fileupload.js?v=0.3.3 the same as http://ghost.wordofpress.com/assets/ghost/plugins/gust/assets/jquery-fileupload.js?v=0.3.3 if you open the links in browser?

Also, is this on live server or in localhost?

@itawde
Copy link
Author

itawde commented Jan 4, 2014

Hm if there's any tool available for a quick 1:1 source code comparison then I don't have it ;)

If you want to check 1542 lines manually, here's the output from my server: https://gist.github.com/itawde/8256749 ;)

It's a live server.

@ideag
Copy link
Owner

ideag commented Jan 4, 2014

@itawde the tool is called diff (e.g. http://www.diffchecker.com/). The output matches, so I'll have to look for another problem.

Now if you tried changing line 542 of gust.js to
jQuery('#add-post-list').attr('href',Gust.ghost_base+'/editor/'+type);
Any chages?

@itawde
Copy link
Author

itawde commented Jan 4, 2014

Ah thanks for the link :)

General behavior didn't change. However now the JS error doesn't show up on load of the editor, but it does when clicking on the arrow right next to "Update post". Klicking on "Update post" itself still nothing happens, and still the editor does show "0 Words".

@ideag
Copy link
Owner

ideag commented Jan 4, 2014

is the actual error message the same? Have you tested this on several browsers? I assume you use Firefox as you mentioned Firebug.

@itawde
Copy link
Author

itawde commented Jan 4, 2014

Yes, same error message. Tested on Firefox, Chrome and Safari on my Mac. Behavior identical on all browsers here.

@ideag
Copy link
Owner

ideag commented Jan 6, 2014

Hi, @itawde,

I have just released a 0.3.2 version, with several small updates and fixes. I wonder if this helped in anyway with your issue?

@itawde
Copy link
Author

itawde commented Jan 7, 2014

Unfortunately not.

@ideag
Copy link
Owner

ideag commented Jan 7, 2014

I'll keep looking, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants