Forum Replies Created

Viewing 15 replies - 1 through 15 (of 45 total)
  • Thread Starter Andrew Rothman

    (@arothman)

    yes, i determined it was better suited to posting on your GitHub for this project. It was a bug report rather than a support request. 🙂

    Thread Starter Andrew Rothman

    (@arothman)

    Thanks for the tip! I’ll give that a try.

    Thread Starter Andrew Rothman

    (@arothman)

    yeah, that’s my next move – manually reinstalling the 7 beta apparently was not gonna cut it!

    Thread Starter Andrew Rothman

    (@arothman)

    Any idea how I can roll this thing back? I’ve renamed the plugins folder and replaced the entire WP installation but I still get the error…

    Thread Starter Andrew Rothman

    (@arothman)

    Yes, actually. I did have that enabled!

    I already renamed every plugins/ subfolder but still throwing the error. Guess I’ll wait for the update and manually install it…

    Fatal error: Uncaught Error: Interface "Psr\Http\Client\ClientInterface" not found in /home4/cvltweb/public_html/dev/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php:29 Stack trace: #0 /home4/cvltweb/public_html/dev/wp-settings.php(290): require() #1 /home4/cvltweb/public_html/dev/wp-config.php(105): require_once('/home4/cvltweb/...') #2 /home4/cvltweb/public_html/dev/wp-load.php(50): require_once('/home4/cvltweb/...') #3 /home4/cvltweb/public_html/dev/wp-admin/admin.php(35): require_once('/home4/cvltweb/...') #4 /home4/cvltweb/public_html/dev/wp-admin/index.php(10): require_once('/home4/cvltweb/...') #5 {main} thrown in /home4/cvltweb/public_html/dev/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php on line 29

    Thread Starter Andrew Rothman

    (@arothman)

    Got it! I’ll just disable that feature for now so my logs don’t go crazy.

    Thread Starter Andrew Rothman

    (@arothman)

    OK. I will investigate that. I won’t be able to get FTP access, but I can get on a screen share with the client and reach the WordPress back end with them to try and edit the functions file.

    Thread Starter Andrew Rothman

    (@arothman)

    Before embarking upon that solution, there might be something easier. In some cases the login URL includes a redirect_to= query string that’s invalid. This can cause the login screen to reload. In some cases you are actually logged in and you can manually request a direct admin URL and get to it (assuming your user role is permitted there).

    Can you give me a bit more info on this suggestion? There is a “redirect_to” on the URL, but it’s the “real” internal URL rather than the obfuscated one I’ve got access to. If I attempt to load an internal URL (i.e. domain.com/wp-admin/edit.php?post_type=page) I still end up at the login page. If I navigate to a specific page I do see the WP admin toolbar across the top, but clicking ‘Edit’ just bounces me back to the login again.

    Thread Starter Andrew Rothman

    (@arothman)

    I was able to resolve the issue with a custom function like this:

    function set_template( $post_id, $xml_node, $is_update ) {
    $import_id = wp_all_import_get_import_id();
    if ( $import_id == ‘1’ ) {
    // Set the page template meta key.
    update_post_meta( $post_id, ‘_wp_page_template’, ‘page-templates/current-job.php’ );
    }
    }
    add_action( ‘pmxi_saved_post’, ‘set_template’, 10, 3 );

    Thread Starter Andrew Rothman

    (@arothman)

    I was able to get this to work by using a custom function to force the correct template post-save:

    function set_template( $post_id, $xml_node, $is_update ) {
    $import_id = wp_all_import_get_import_id();
    if ( $import_id == ‘1’ ) {
    // Set the page template meta key.
    update_post_meta( $post_id, ‘_wp_page_template’, ‘page-templates/current-job.php’ );
    }
    }
    add_action( ‘pmxi_saved_post’, ‘set_template’, 10, 3 );

    Thread Starter Andrew Rothman

    (@arothman)

    The reason I was asking is that the dropdown is not showing the templates that are in the root. When I go to the normal Add Page in WP my ‘Page Templates’ dropdown has over a dozen options, but in WP All Import I’m only getting ‘Default’.

    Thread Starter Andrew Rothman

    (@arothman)

    Still having the same issue, despite updating WP and manually replacing files. When I attempt to change a block from one type to another, it crashes.

    TypeError: Cannot read properties of null (reading 'addEventListener') at https://**********/site/wp-includes/js/dist/block-editor.js?ver=0930e041f64667e446db:19577:17 at https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:3646:25 at assignRef (https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:4217:5) at https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:4319:7 at assignRef (https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:4217:5) at https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:4319:7 at assignRef (https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:4217:5) at https://**********/site/wp-includes/js/dist/compose.js?ver=228e7d7fccaae67c220c:4319:7 at commitAttachRef (https://**********/site/wp-includes/js/dist/vendor/react-dom.js?ver=18.2.0:23655:22) at commitLayoutEffectOnFiber (https://**********/site/wp-includes/js/dist/vendor/react-dom.js?ver=18.2.0:23513:11)

    It’s happening on multiple machines and with different user logins. I’m not sure what else I can try…

    Thread Starter Andrew Rothman

    (@arothman)

    I figured it out. When using a Block theme, the only way to edit the homepage is to click “Edit Site” rather than “Edit Page” and then alter the ‘Front Page’ from there.

    Thread Starter Andrew Rothman

    (@arothman)

    I was on 6.4.2. I updated to the .3 today. If it keeps happening, I will try the manual update as you suggest.

    Thread Starter Andrew Rothman

    (@arothman)

    Thanks, friend! That makes sense. I’ll give it a spin and see how it goes…

    It occurs to me that I could simply back up the ‘dev’ site and import it into the ‘subdomain’ one to overwrite it, and then search/replace. I don’t need to change the URLs on the multisite at that point because the new content will already be at the right URL…

Viewing 15 replies - 1 through 15 (of 45 total)