No longer able to create Wordpress pages - javascript

I'm using Wordpress for my blog and from some weeks I'm no longer able to create pages !!
I try to create a new page and when I clic on Publish, nothing happens. I also tried to use Google Chrome to inspect the Publish button I get this error :
An invalid form control with name='' is not focusable.
I use Wordpress 4.1.1

The problem comes from Twitter official wordpress plugin.Then, You just need to disable the plugin and everything is OK.

Related

jQuery Lazy not loading images after I click the Facebook Connect button

I implemented jQuery Lazy: http://jquery.eisbehr.de/lazy/. Everything works correctly except for one thing: When I click the Facebook Connect button, the images remain blank. After I click around, they come in as usual.
I have noticed that when I click the Facebook Connect button to log in, the URL in the address bar changes from [My URL] to [My URL]/#_=_. The Facebook Connect implementation does something that prevents the jQuery Lazy images to load unless I click around after this Facebook login. I have not found online anybody complaining about this. I thought it would be a common and addressed bug. Any ideas about why this could be happening?
UPDATE 1: When I visit [My URL]/#_=_ without using Facebook Connect at all, jQuery Lazy does not work either, the images remain blank. What happens is that when I click around, this #_=_ that is appended immediately after I log in with Facebook, gets removed. What I am seeing is that the problem is this #_=_ that Facebook Connect puts at the end of our URL. I see this situation is discussed at Facebook Callback appends '#_=_' to Return URL and the logical thing to do would be to get rid of the #_=_ but not without studying first the implications of doing that.
UPDATE 2: I followed Gorgi Rankovski's comment to Ryan's solution at Facebook Callback appends '#_=_' to Return URL and used this in my head tag:
<script type="text/javascript"> var idx=window.location.toString().indexOf("#_=_"); if (idx>0) { window.location = window.location.toString().substring(0, idx); } </script>
Now [My URL]/#_=_ becomes [My URL]/, which is what I wanted. Nonetheless, this did not fix the problem about the jQuery Lazy images not loading after clicking the Facebook Connect button.
UPDATE 3: I tried https://appelsiini.net/projects/lazyload/ instead of http://jquery.eisbehr.de/lazy/ for lazy loading images, two different plugins for lazy loading images, and both of them experience the same bug when using Facebook Connect.
I experienced a similar bug using Slick carousel (Pictures of Slick carousel do now show only after coming back from a successful Facebook Connect). I guess upgrading the Facebook PHP SDK (v.3.2.3) to something newer might help. For now I am not using jQuery Lazy anymore after not finding a fix for this bug yet.

yii2-advanced modal conflict with adminlte

I just want to get your opinion regarding my problem.
Currently, I'm developing a system using Yii2 Advanced.AdminLte is used for the backend.
Everything went well until I used modal on my page. I noticed that user account dropdown didn't work.
What should I do with? Should I have to debug everything?
Below is the screenshot when I'm not using modal on my page.

WordPress timeout error ('Articles' admin link + WPML)

In my WordPress admin when I am inside a single article in the admin panel, and I click on the 'Articles' link on the left menu, I get my a timeout in my browser. This is very strange, because it happens ONLY when I click on that link inside an article: it doesn't happen when I click it from other sections of the panel, as when I'm in the dashboard or plugins section and I want to go to articles.
The second error I receive is when I click the 'Duplicate' button inside a post to translate that content in another language. The result is the same, 5 minutes loading and timeout error which leads to crash of the browser.
All plugins are updated, as well as the WordPress version. I have already tried to disable and activate each plugin one by one and this error comes anyway, also with all plugins disabled!!
I think it's not about WordPress version or plugins but it's like there's something which the system can't manage loading inside the article...I really can't figure out any solution.

CKEditor Rails blank page after youtube-video added on update

I use ckeditor gem https://github.com/galetahub/ckeditor/
I add video from youtube on edit page and click Save -> blank page, and in URL-adress there is "data:," (every time same).
Content of editor saved, but every time user needs to click "back" button.
I use google and found just this: http://ru.wikipedia.org/wiki/Data:_URL
P.S.: in Firefox there isn't this bug, only in Chromium/Chrome
Rails 4, in dev/prod both
I have the same issue, I suspect most users will too.
If I get time today I plan on investigating this further but for now I will raise an issue in the Github Repo.
I had a blank page issue after upgrading to the newest ckeditor 4.5. All I did to correct it is to go the top of the browser of the editing page and refresh. Then everything started populating correctly. I hope this works for you as well. Give a feedback if it works. Thanks.

Minor issues with a Google API Project

I'm encountering two problem with my Google API Project.
First, I've been working with this project for several weeks but the past couple days I have started seeing this error in my console. Everything works fine, I just get this annoying message.
Unknown RPC service: _noop_echo cb=gapi.loaded_0:71
Secondly, I get this new dialog that keeps fading in but I don't know how to disable it. It appears for a couple seconds and then fades out.
I originally had the Google+ API turned on for my project but I turned it off since I only needed the Google Drive API and SDK. I thought these problems may have started after turning the Google+ API off in my project but turning it back on has no effect.
Google just fixed a bug. You should no longer see the message unless you are using the plus.login scope.
That message is intended for users that have signed in with Google+ Sign-In, but was appearing more often than designed.
Ok, I finally figured out how to prevent the new "Welcome back" dialog from appearing. I just added the following line of code in my handleAuthResult function from the docs here.
https://developers.google.com/drive/auth/web-client
function handleAuthResult(authResult) {
...
$("iframe").hide();
}
The "Welcome back" dialog is an iframe wrapped in a few divs. The problem is the ID for the iframe appears to be randomly generated and there are no IDs used in the parent divs. My project doesn't use any iframes so just hiding all iframes does the trick.

Categories