Before you ask please READ THIS

Front page set to single album/full width slider not autoplaying

Hi again,

I've got the site set up with Front Page set to show a single album - Full Width Slider. The album is set to autoplay.

The first page to load is the english version www.alistairjamesbell.com/wp but this does not autoplay. If I change language to Italian or French the it autoplays correctly. Switching back to English does not start it.

I have switched AJAX off now to try and make the front end faster and disabled music as I will not be using it just yet. AJAX switched on did not affect the result.

Having tried it in Safari, Google Chrome and Firefox, it seems it tries to start autoplaying but then stops.

Let me know if I can provide any more information.

Thanks,

Alistair

Comments

  • I've tried it on a Dell laptop just now and it autoplays in English (using Google Chrome or Firefox) but not in French or Italian. So the behaviour seems to be different on different technologies.

    The buttons on the bottom right hand side of the page don't appear to be working either in the English page on the Mac (image below). If I click on the down arrow to hide the bottom bar of the screen it doesn't work.
    Screen Shot 2016-01-22 at 16.42.29.png
    496 x 332 - 228K
  • AirAir
    Posts: 10,970
    Hello again :-)

    Is it possible to see link to your site with issue?

    With kind regards.
  • Hi Sorry, yes... of course... www.alistairjamesbell.com/wp
  • AirAir
    edited January 2016 Posts: 10,970
    You know, I think I have seen this issue and I just couldn't solve it. Problem appears only on fornt-page and only when video is first item in album. When it is image it works fine. Please try swapping image to first place in French and Italian version, and test again.

    With kind regards.
    Post edited by Air on
  • A difficult one then... The original language album (English) from the Photon theme demo data is set to a photograph and the video is the 5th item yet this page does not work properly. I'm trying to find out how to change the order of photos in the other languages.
  • Tested deactivating the language menu and hiding languages without translations and this has no effect.

    What seems strange is I have set the same parameters on my page as they are on the Photon demo site which I have access to.

    I could provide you with admin access to my site temporarily if it could help.

    Cheers,

    Alistair
  • AirAir
    Posts: 10,970
    Alistair said: The original language album (English) from the Photon theme demo data is set to a photograph and the video is the 5th item yet this page does not work properly
    For me it works fine. I mean autoplay works fine. I just see that other languages autoplay is "started but stopped" :-) cause of video as first item. I have tested this on Firefox and Chrome and works same for me.

    With kind regards.
  • Could my issues be mac related then (my main machine) - a parameter somewhere...? On Dell (with windows), my results seem to echo yours.

    I don't know where to set the first image in the translated version as WPML (allegedly) doesn't duplicate the media from an album to its translation.
  • AirAir
    Posts: 10,970
    Alistair said: I don't know where to set the first image in the translated version as WPML (allegedly) doesn't duplicate the media from an album to its translation
    That is strange. Maybe it is just hidden? Or maybe try again doing duplicate from original version.
    Good idea would be also to try to create new album, and then trying to translate it, as imported demo data sometimes get corrupted in strange ways, and very strange issues appear:-) Anyway give it a try.
    Alistair said: Could my issues be mac related then (my main machine) - a parameter somewhere...?
    It sounds like but personally I don't believe in such things with modern browsers. It is usually case of being loged as admin on one device and on other not logged, or often just not refreshed cache.

    So on which machine you are logged in as admin?

    Soon I am off for this week. So if I miss u, then we will continue on Monday.

    With kind regards.
  • Hi Air,

    food for thought on Monday as I was out Friday night.

    To add some complexity, I've tested it on my iPhone 4S and everything is working exactly as it should be... Using safari. Everything loads, runs and switches languages correctly. Even changing languages several times. The logic of the videos appearing first in Italian and French seems not to affect the autoplay on the phone... There does seem to be a screen difference as the yellow " i " button in the top left hand of the screen is not there.
    _______________________________________________________________________________
    I perhaps better summarise as the thread is possibly starting to get confusing:

    iMac - Test Set 1:-
    Main Admin machine.
    I'm using Wordpress and the theme installed on a hosted GoDaddy server which I connect to via browser connection.

    First step:
    logged out of all admin accounts (Wordpress, GoDaddy) then cleared down cache, cookies and local storage for all installed browsers (Safari, Firefox and Google Chrome) for www.alistairjamesbell.com/wp.

    Second step - Safari results:
    a1) first page (English) is not loading correctly. Autoplay does not work. The < play > down arrow functions (see image above) do not work to hide the picture bar as expected. Forward and back buttons work, play does not. Down arrow 'bounces' the images across the bottom bar only.
    b1) Switching language - first time page is loaded (ignoring issues on step a1) switching language from English (EN) -> French (FR) -> Italian (IT) autoplay for both IT and FR work correctly (even with the videos as first image). If I swap languages again autoplay stops working.
    c1) Quit and open Safari again. Autoplay does not work.

    Third step - Firefox results:
    a2) first page consistent behaviour with Second step a1) above.
    b2) Switching language consistently autoplays FR and IT no matter how many times I switch between languages. EN remains consistently non-functional.

    Fourth step - Google Chrome results:
    a3) first page consistent with Second step a1 and a2.
    b3) Switching language consistently autoplays after the first time the page is loaded in this browser. After that, sometimes it autoplays, sometimes it does not.
    c3) Quit and open Google Chrome again. Autoplay works in the same manner as b3).
    Note: the " i " button at top of page flashes on and off with no particular pattern. Sometimes it stays on if I click on it. Other times it continues to flash.
    ___________________________________
    Macbook - Test Set 2:-
    First step - Safari Tests:
    same as Test Set 1.

    Second step:
    a4) first page (EN) loads correctly with all functions working as expected including the arrow functions which aren't in Test Set 1. Autoplay works as well.
    b4) Switching language - first time page is loaded switching language from English (EN) -> French (FR) -> Italian (IT) autoplay for both IT and FR work correctly (even with the videos as first image). If I swap languages again autoplay stops working for IT and FR. For EN it works every time.
    c4) Same behaviour as c1).

    Third step - Firefox results:
    a5) all pages work as expected even after switching language. every time language is changed and every time page is loaded.
    b5) Quit and open Firefox again. Same result as a5) above.
    Note: In Safari and Firefox the " i " button at top of page flashes on and off with no particular pattern. Sometimes it stays on if I click on it. Other times it continues to flash.

    Fourth step - Google Chrome results:
    a6) same result as a5).
    b6) same result as a5)
    Note: the " i " button is always set to yellow in Google Chrome.
    ___________________________________
    iPad 2 - Test Set 4:-
    a7) Clear cache then open new Safari session. EN loads and autoplays correctly.
    b7) Switch language EN->FR->IT. This time, FR autoplays correctly (even with video first). IT does not. Changing back to FR it does not autoplay 2nd time round. Going back to EN this autoplays every time. It seems that this works a bit like in test b3).
    NOTE: The two iPad screen shots below show another bug. In the portrait picture, it is possible to see the + in the bottom left hand corner to show and hide the text in the red box. On the landscape version it is not visible so can't be used.

    Quick test on an iPad Air and it does not work as expected - The results seem to be the same as the iMac.
    ___________________________________
    Dell - Test Set 3:-
    Haven't yet had a chance to test this. Should be able to tomorrow morning.
    ___________________________________

    Apologies for all this information but I hope it helps with fixing the issues (hopefully the same and not me mixing several).

    Alistair
    IMG_0013.PNG
    1536 x 2048 - 4M
    IMG_0014.PNG
    2048 x 1536 - 5M
  • Oh, one last thing... I tried duplicating the album in question and it continues to give the same results. :-(
  • Good Morning, I've just realised that the + in the bottom left is not displayed on the iMac or the Macbook either.
  • Hello again Air,

    You're probably thinking I'm a nuisance!

    I've resolved the problem of the English not working on the iMac. :-) Seems like it is a plugin problem! I deactivated all the plugins and the English page worked. Activated them one by one leaving Jetpack (as this had multiple functions) to the end. The EN page worked until I activated it Jetpack. Turns out one of the Performance & Security elements caused the problem. Funnily enough it has the same name as your theme: Photon. Pure coincidence.

    The Photon element of Jetpack serves to: "Give your site a boost by loading images in posts from the WordPress.com content delivery network. We cache your images and serve them from our super-fast network, reducing the burden on your Web host with the click of a button."

    I've left this deactivated and the EN page now works on all machines every time.

    This does leave the FR and IT pages with autoplay randomly working as per the tests above on Safari and Chrome. Consistently working on Firefox. Could this be the way Safari & Chrome handle local storage compared to Firefox?

    It also leaves the flashing " i " issue on the (strangely not on Firefox on the iMac) and the " + " in the bottom left hand corner (should I open the " + " as a separate issue - responsive design - iPhone layout for this works ?).

    Thanks for your patience and support.

    Alistair
  • AirAir
    Posts: 10,970
    Hello:-)
    It would be great if we could only focus only on one case per topic, but this time I will replay to you other concerns in one topic.

    Easiest first:
    Alistair said: Note: the " i " button is always set to yellow in Google Chrome.
    "i" button flash when there in unread message hidden in footer. After it is clicked, site creates cookie so it won't blink for next 30 days or so. Small feature, don't bother with it.
    Alistair said: I've just realised that the + in the bottom left is not displayed on the iMac or the Macbook either.
    + shows only on certain resolutions when we designed it is not enough space for photo description. So there can be difference between horizontal and vertical iPad and other devices, as this is not device specific feature.

    To main topic:
    I would like to eliminate WPML form this as it adds lots of complication in debugging whole case.
    As I said before I saw in past autoplay issue on some browsers and it only occurred when album was on frontpage. I tried lot of things but I couldn't replicate it on my installation.

    What worries me most is not working album controls : < play >
    It sound that there is either JS problem, or some plugin in browser, like adblock, is breaking them.

    Unfortunately from Apple devices I have only access to iPad, but as I wrote all that code for album my self, I know there is no device specific code that could block Macs, so there have to be something else that breaks album.

    OK what you should do now :
    - Disable WPML
    -Test page only with one language and tell me if controls work and if autoplay works and when it doesn't.

    Then I will try to recreate issue and hunt it down.

    Hope we can do it.

    With kind regards.
  • AirAir
    Posts: 10,970
    Alistair said: The Photon element of Jetpack serves to: "Give your site a boost by loading images in posts from the WordPress.com content delivery network. We cache your images and serve them from our super-fast network, reducing the burden on your Web host with the click of a button."
    Wow that is some great info, but I imagine it can be impossible to make them work together. However I will take a look.
    Alistair said: This does leave the FR and IT pages with autoplay randomly working as per the tests above on Safari and Chrome. Consistently working on Firefox. Could this be the way Safari & Chrome handle local storage compared to Firefox?
    Maybe, it would be best to test on device where page wasn't opened earlier. Or maybe just ctrl/cmd + f5 to hard refresh page ? :-)
    It also can be plugin cache, or other suspicious actions from other plugins
    Ooo I just checked your site and I see that there is now JS error on these languages and it blocks autoplay:
    TypeError: this_img[0] is undefined.
    I wonder is it cause of some plugin or WPML coping problems.

    Try deactivating plugins to see if it will fix it, and if not, I will debug it on your server.

    With kind regards.
  • Thanks Air,

    I will keep separate topics in mind for all future reference.

    Deactivated all plugins again and completely cleared cache, history on Macbook to use that to test separate from iMac admin machine. Also logged out of Admin machine and cleared Cache, Cookies and Local History for Wordpress and alistairjamesbell.com.

    Logged in again and activated Plugins in this order:
    No plugins (only basic menu and English site available) - normal
    1) Apollo 13 Photon Post Types (more advanced menu with Albums dropdown - only English site still) - normal
    2) Envato Wordpress Toolkit (no change to website - English only) - normal
    3) Contact Form 7 (nicer contact form on contact page - English only) - normal
    4) WPML Multilingual CMS (language dropdown appears on upper menu - default English). Already at this stage switching language does not autoplay correctly.

    I went back and deactivated 2) & 3) but the result is the same. At this point, I don't think the other plugins are affecting the issue so I've reactivated everything as before (excluding Jetpack Photon).

    It would seem that WPML is having trouble as that is the only other plugin that was active.

    Do you need me to provide you with admin access to the server?

    Cheers,

    Alistair
  • AirAir
    Posts: 10,970
    Yes please:-)

    Send me temporary access to your WordPress so I could check there what is going on. Send it here on forum via private message(click on my nick, in top-right corner you will find option "Message"). In message please attach LINK to topic it applies to.

    By sending access to WordPress I mean:
    -create new ADMIN account with fake e-mail
    -set some password to this account
    -send me created login and password

    With kind regards.
  • AirAir
    Posts: 10,970
    I have fixed script that failed with autoplay on album when video were first. Still I don't know why in translated version of album video landed as first items. When I will solve this I will release update with fixes.

    Thanks for all help.

    With kind regards.
  • AirAir
    Posts: 10,970
    It looks It is fixed now, and it just couldn't work good as it was. We will release update today.

    With kind regards.
  • Hey Air,

    That sounds excellent. Look forward to updating to the next release and continuing... Hope my testing was/is helpful.

    Alistair
  • edited January 2016 Posts: 67
    Fantastic support Air!

    Thank you so much. I've installed the new version of the theme and autoplay is working like a dream now in all 3 languages.

    I've been thinking, could the order of images could be a WPML issue rather than your theme? If so, I can log a support call with them if you like?

    Regarding the Jetpack Photon function, would you like me to raise a new and separate support call for this? I have left it inactive on my site as things stand.

    Have a great rest of the week.

    Alistair
    Post edited by Alistair on
  • AirAir
    Posts: 10,970
    Thank you too :-)
    Alistair said: I've been thinking, could the order of images could be a WPML issue rather than your theme? If so, I can log a support call with them if you like?
    Order of images should also be fixed with latest update, cause it was part of whole problem. I have tested this extensively and it worked fine for me. Are they still in bad order for you after update?
    Alistair said: Regarding the Jetpack Photon function, would you like me to raise a new and separate support call for this? I have left it inactive on my site as things stand
    It still does not work with it? I don't know if I can find any solution for that one. I will mark this topic, so you don't have to set new one for now.

    With kind regards.
  • Air,

    Re your first point everything is in good working order... All in the correct order. Mine was an afterthought before checking that element.

    Regarding your second point (Jetpack). It still does not work. I really do not understand why as it only appears to happen on my iMac. I tested activating it on the Macbook and it worked OK there but still caused it to stop working on the iMac...
  • AirAir
    Posts: 10,970
    Does it happen on any browser on your iMac ? Cause maybe there is some addon that is affecting this.

    With kind regards.
  • It happens with any browser on my iMac and as soon as I refresh the page after activating the Jetpack Photon option. Same happens if I log out of all admin screens and clear cache, etc.

    I don't know if it helps but I see that it tries to start autoplay then stops a fraction of a second later.

    I also thought it could be an addon issue so I made sure the Safari setup is identical on the Macbook and the iMac. Is it worth you knowing it is an iMac Retina?

    Kind regards,

    Alistair
  • AirAir
    Posts: 10,970
    Shame that I can't test it, to see what happens in JavaScript, that blocks it. Does album works after this, can you change slides and run autoplay after it "crashes"?

    With kind regards.
  • Hi,

    Yes, it's like switching a switch. ON = stop working. OFF = Working.

    Would it help if we started a TeamViewer screen sharing session so you can see what happens from my screen directly?

    If so, we could arrange it for some time convenient next week.
  • AirAir
    Posts: 10,970
    Alistair said: Yes, it's like switching a switch. ON = stop working. OFF = Working.
    So you mean slider totally breaks?
    Alistair said: Would it help if we started a TeamViewer screen sharing session so you can see what happens from my screen directly?
    Thanks, but it won't help in this case.

    With kind regards.
  • Not completely. The < and > buttons work but the "down arrow" and play button stop working.

    Clicking on the down arrow, in fact, gives a similar result to the original problem where the images along the bottom of the screen "bounce". As if they were trying to follow the hide instruction but it is counteracted by a show instruction.
  • AirAir
    Posts: 10,970
    I think it might be something else. i have read how this "photon" addon works https://jetpack.me/support/photon/ and it shouldn't affect album in way I thought it does. Maybe it generates its own JavaScript error.
    Is this "Photon" now activated on your site?

    With kind regards.
  • Hi Air,

    It's set to inactive at the moment as it 'breaks' it. I can set to active if you like as it only affects me at present.

    Let me know.

    Alistair
  • AirAir
    Posts: 10,970
    Yes, sure activate it, and I will check how it works in consoles of various browsers on WIndows.

    With kind regards.
  • Cool, it's now activated.

    Kind regards,
  • AirAir
    Posts: 10,970
    I have checked that images are indeed swapped, and served from wordpress.com cloud. But as they are changed on server not by JavaScript, then there shouldn't be any issue.

    BUT it seems that retina word is the key here:-) as I was able to recreate your issue on iPad retina! That are good news. Bad news are that this(iPad) is very hard to debug. BUT AGAIN chrome console have ability to somehow simulate retina screen, and there I was able to also recreate this issue.

    Next I have found out that when there is retina script then this "photon module" runs this script http://www.alistairjamesbell.com/wp/wp-content/plugins/jetpack/modules/photon/photon.js?ver=20130122 where you can see there are lots of "retina" words:-)

    This is exactly what messes our album, cause there are some actions changing markup.

    Still I don't know if I can resolve this, and it may end in Photon being incompatible with Photon :-)

    We will see.

    Thanks for help!

    With kind regards.
  • AirAir
    Posts: 10,970
    I think it is not that code, cause I tried removing it and it is still broken. I think something else is making album code bind events two times, and this is why(probably) you can't hide thumbs or play album. If I am right then there is pretty easy way to fix it in code.

    I will inspect some more.

    With kind regards.
  • AirAir
    Posts: 10,970
    Here is fixed code, unzip it and upload it to photon-a13/js

    With kind regards.
    zip
    zip
    a13-slider.zip
    14K
  • Fantastic Air!

    I've replaced the existing file with this one and it works.

    When the page loads it looks like the first image "blinks" (in all 3 browsers) but then each image thereafter transitions without any problems. This is consistent every time the page is opened or language is switched. Personally, I doubt "Joe Public" will notice it so I wouldn't consider it an issue.

    Do I need to keep the files you sent me previously (this one and the earlier ones) or do you automatically include them in all future versions of the theme?

    In the meantime, you've been really great. I wasn't expecting such quick, professional support from an online product so it's very reassuring considering this is a new product for me.

    Kindest regards,

    Alistair
  • AirAir
    Posts: 10,970
    Alistair said: When the page loads it looks like the first image "blinks" (in all 3 browsers) but then each image thereafter transitions without any problems. This is consistent every time the page is opened or language is switched. Personally, I doubt "Joe Public" will notice it so I wouldn't consider it an issue.
    Yes, this was exactly cause of this issue, cause image is swapped by script(Jetpack Photon), and that caused double events binding - source of strange album acting.
    Alistair said: Do I need to keep the files you sent me previously (this one and the earlier ones) or do you automatically include them in all future versions of the theme?
    Every fix I was able to do thanks to your posts, is also included in next updates :-)
    Alistair said: In the meantime, you've been really great. I wasn't expecting such quick, professional support from an online product so it's very reassuring considering this is a new product for me.
    I am glad you find our service satisfying. Big thanks for all help with spotting this issues!

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!