Forum Replies Created

Viewing 15 replies - 16 through 30 (of 318 total)
  • Joey

    (@leglesslizard)

    You should be able to see cookies for the site by opening chromes dev tools (right click and inspect), going to the application tab and clicking cookies on the left hand side.

    Joey

    (@leglesslizard)

    Glad it’s working now but keep an eye on it, sounds suspicious to me. That file should not be modified

    Joey

    (@leglesslizard)

    Looks like a permissions issue on Firefox, I’d imagine with SSL sorted that’ll allow the stylesheets to load

    Joey

    (@leglesslizard)

    Looks good for me now 🙂 sorted it?

    Joey

    (@leglesslizard)

    That file (and all core WordPress files) should remain unchanged. If something is editing these core files then I’d remove it immediately

    Joey

    (@leglesslizard)

    In Settings->Reading you should be able to choose whether to display a static front page or blog posts, then you can choose a number of posts to display. If this isnt available then I’d suggest deavtivating any plugins and switching to a default WordPress theme in case either of these are altering the options.

    fron-page.php is the template for your front page see https://codex.ww.wp.xz.cn/Creating_a_Static_Front_Page

    Joey

    (@leglesslizard)

    What version of WordPress are you using? This should be displayed on the Dashboard in the “At a glance” box

    Joey

    (@leglesslizard)

    If this has only happened since yesterday can you restore a backup from before? Also, what changed on your site? Was anything updated etc that could have caused the issue?

    I’d speak to your host about the issue and see what they can discover for you as well

    Joey

    (@leglesslizard)

    If you can’t even read that file then there’s a problem somewhere there no?

    I checked a few sites we manage for you and the permissions are all showing as 664 but a more in-depth discussion about file permissions can be found in the codex: https://codex.ww.wp.xz.cn/Changing_File_Permissions

    Joey

    (@leglesslizard)

    404 not found is the error. Without access to that file none of the ajax processes can work. This will include updating categories and tags on a post page, widget updates and media views as well as others…

    I had a similar issue not long ago but am struggling to find the log of what exactly the cause was. If I do I’ll update you.

    In the meantime could you check the admin-ajax.php file against the original and make sure it hasn’t been altered (I know some hacks target this file). The original can be seen here:https://github.com/WordPress/WordPress/blob/4.9.6/wp-admin/admin-ajax.php

    Joey

    (@leglesslizard)

    If it is the Media page in wp-admin you are having trouble with you’ll be able to see the network requests and responses. On page load and when you filter the media a call to admin-ajax.php is made which will return a JSON array of all the media found for the current selection. This result is cached so you’ll need to reload the page to trigger the same request again but changing dates or types of media will trigger another request.

    If you are seeing the loading icon but nothing ever loads it is due to an error in the response of this request.

    The response preview should be along the lines of:

    {success: true, data: [{id: 56, title: "pennant-1.jpg", filename: "pennant-1.jpg",…},…]}
    data
    :
    [{id: 56, title: "pennant-1.jpg", filename: "pennant-1.jpg",…},…]
    success
    :
    true
    Joey

    (@leglesslizard)

    Hi,

    It depends exactly how you want the data stored. If you want it inside the current user description field you can use the returned user ID to grab the user object, alter the description and update the user:

    if ( $wpUserId ) {
        $user = get_user_by( 'id', $wpUserId );
        $user->description = $wpsapProfile['steam_personaname'];
        wp_update_user( $user );
    }

    If you want it stored as metadata for the user you can use the update_user_meta function:

    if ( $wpUserId ) {
        update_user_meta( $wpUserId, 'my_user_description', $wpsapProfile['steam_personaname'] );
    }

    and retrieve later with get_user_meta( $wpUserId, 'my_user_description', true );

    Joey

    (@leglesslizard)

    Did you try the same thing but clearing your cache after? You may have cached javascript running on the page or something that still causes the issue.

    Another place you can check, with developer tools open go to the network tab. Clear it (for clarity) then trigger the error. You should have an XHR request appear. This will be the request that’s failing and by clicking on that and visiting the preview/response tab you may be able to see an error returned (or get a clue as to why the proper response wasn’t returned)

    Forum: Fixing WordPress
    In reply to: High Mysql usage
    Joey

    (@leglesslizard)

    Hi,

    Are you using query monitor? This is a plugin that will show you all queries on the page, their speed, highlight any slow ones and show you where they are being used. I’d have a look at that and remove any extensions that are running slow queries unless they are essential to the site (maybe look at alternatives or contact the developers to make them aware of the slow queries)

    Joey

    (@leglesslizard)

    Hi,

    In the wp_postmeta table for each order a “_customer_user” is stored. This meta key holds the user ID for the customer of that order. Something like the following should give you what you need:

    $orders = get_posts( array(
        'numberposts' => -1,
        'meta_key'    => '_customer_user',
        'meta_value'  => $user_id,
        'post_type'   => wc_get_order_types(),
        'post_status' => array_keys( wc_get_order_statuses() ),
    ) );

    Insert the appropriate user ID and alter order types and statuses as required.

Viewing 15 replies - 16 through 30 (of 318 total)