• Resolved singingcyclist

    (@singingcyclist)


    Hi – since upgrading to WordPress 5.3, although my metaslider is working fine at the front end, I cannot edit it in the admin area. I get this error “error loading list of slideshows”. In another thread, it was suggested editing php.ini by adding memory_limit=256M .. but I have looked in my php.ini and it is already set to this:

    “memory_limit=268435456”

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 26 total)
  • Hi,

    As mentioned in the other thread, can you follow some of the other steps described:

    Can you also share a screenshot of any errors you see in the browser console?

    https://updraftplus.com/faqs/how-do-i-open-my-browsers-developer-tools/

    Also under the network tab you might find some clues there as well. Example: https://prnt.sc/pxh6vv

    Further, can you mention how many slideshows you have and about how many slides in total (an estimate is fine)

    Thread Starter singingcyclist

    (@singingcyclist)

    There are only 2-3 slideshows, and each one only has 2-4 slides. I went through the previous thread but the only thing I could find to try was the memory limit (as above).

    I have found the errors in the browser console:

    JQMIGRATE: Migrate is installed, version 1.4.1
    admin.php?page=metaslider:1 Access to XMLHttpRequest at ‘https://thefunfactory.co/wp-json/metaslider/v1/slideshow/all?action=ms_get_all_slideshows’ from origin ‘https://web.thefunfactory.co’ has been blocked by CORS policy: Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response.
    app-3-15-2.js?ver=3.15.2:1 Error handling failed: TypeError: Cannot read property ‘hasOwnProperty’ of undefined
    at Sn.getErrorMessage (app-3-15-2.js?ver=3.15.2:1)
    at app-3-15-2.js?ver=3.15.2:1
    getErrorMessage @ app-3-15-2.js?ver=3.15.2:1
    app-3-15-2.js?ver=3.15.2:1 MetaSlider: Error fetching list of slideshows: Error
    notifyError @ app-3-15-2.js?ver=3.15.2:1
    app-3-15-2.js?ver=3.15.2:1 MetaSlider: MetaSlider dashboard loaded

    Hi @singingcyclist

    Are you logging into web.thefunfactory.co or thefunfactory.co?

    Thread Starter singingcyclist

    (@singingcyclist)

    web.thefunfactory.co

    If you log in from here does everything work?

    https://thefunfactory.co/wp-login.php

    If you have the admin set up in a subdomain you need to configure your server to allow access to the main site from the subdomain, otherwise you get a CORS failure. Do you know what server you’re using?

    Hi @singingcyclist

    Can you take a look in settings -> general and tell me what you have here? Here’s an example:

    https://hostpapasupport.com/knowledgebase/wp-content/uploads/2017/11/wp-site-url-1.png

    Thread Starter singingcyclist

    (@singingcyclist)

    Hi there – sorry for delay. The whole website is on the subdomain web.thefunfactory.co – this is because I set up the new site in a subdomain while the old site was still running at the root. I thought it would be OK to leave in the subdomain, as for quite a few other clients I have WordPress sites in subfolders and that all works OK. This particular site is hosted at Ionos, and although you can access the site by going to thefunfactory.co/web, it doesn’t seem to behave the same as a subfolder.

    So to answer your previous 2 questions:

    1) If I try and go to thefunfactory.co/wp-admin, it auto-redirects to web.thefunfactory.co/wp-admin

    2) In settings I have WordPress address set to https://web.thefunfactory.co/ and Site address set to https://thefunfactory.co/.
    I did try to change the WordPress address to https://thefunfactory.co/web but it didn’t work and crashed the site .. hence my delay as I just had to go into the database and change it back!

    Thread Starter singingcyclist

    (@singingcyclist)

    I guess I may have to ask Ionos to move it up to the root .. but everything has been working OK up until now like this .. its only since upgrading to WordPress 5.3 this morning that the problem has started

    Hi @singingcyclist

    We use rest_url() which is a built in WP function that appears to use the home option from the options table on the database.

    Do you have an override set in wp-config.php?
    Since you are familiar with the database, can you share what you have in the home option?

    I see two options:

    1. Update your server config to allow access from the subdomain to the main domain (let me know whether u use nginx or apache and I can find a guide)
    2. Add a filter telling REST to make its request to the proper place (the url might need to be tweaked, check the browser console. You might need a ‘/’ at the end)

    add_filter('rest_url', function() {
      return 'https://web.thefunfactory.co/wp-json'
    }

    #2 might be easiest.

    Thread Starter singingcyclist

    (@singingcyclist)

    in the options table, home is set to https://thefunfactory.co/

    Yes I understand that database, but I am afraid I don’t understand your solutions – for number 2, where would I add that filter?

    Can you update the database to point to the actual home url?

    https://web.thefunfactory.co

    Does that fix it?

    Thread Starter singingcyclist

    (@singingcyclist)

    But surely if I did that then the users would see the “web” bit?

    No, that would be the “site_url”. But it sounds like it’s being configured elsewhere as well. Anyway, you can always set it back if it breaks anything.

    Thread Starter singingcyclist

    (@singingcyclist)

    Well you are completely right .. I have updated it to that and everything works fine now .. so thanks

    But .. if you go to the site now, you will see that although you can access any page from the root .. e.g https://thefunfactory.co/fireworks takes you to the same place as https://web.thefunfactory.co/fireworks, when you use the manu bar, you go to the address with web. in it .. ie the user can now see that we are in a subdomain

    Whereas in the old set up, the users only saw the site address, ie without the web

    Is the site_url pointing to the root?

    Are you on an apache server? You should be able to redirect that in the .htaccess file. Just make sure you don’t redirect the REST url. Can you share the .htaccess file thats in the web subdirectory?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Metaslider problems with WordPress 5.3’ is closed to new replies.