Forum Replies Created

Viewing 15 replies - 1 through 15 (of 65 total)
  • @alenidi Shouldn’t be anything in the plugin that redirects things like this. My guess is the custom post type might not be coded correctly. Either that, or you have another redirect plugin that automatically detected that action and is now redirecting the old link to the new link, which would still happen if you create a new page with the same slug.

    @tomatobob1138 I’m not the plugin author, however I have tested this plugin on all versions of PHP 8.0 and up and have not had any issues like what you are describing.

    If you go in your WordPress dashboard, click on “Tools” and “Site health” and then click “Info” and finally, “Server” – do you show the correct PHP version there? In some cases, the web host could be on 8.0 and up, but sometimes the WordPress folder might not be running that version. Some web hosts will have the PHP version defined in the site’s “.htaccess” file.

    If site health shows the older version of PHP, such as 7.4, then that would be why you are getting the notice. In that case, you may wish to just contact your hosting provider to get them to set the PHP version for you, unless you have options in the control panel of your hosting to set this easily.

    If you verify that you are indeed on PHP 8.2 from within the Site Health screen, then hopefully the plugin author will be able to help you. It might help to identify the conflict if you have a server error log (maybe post it on pastebin and put the link here).

    @sukinoz I agree that free plugins that limit a big amount of features like what you pointed out are probably not being clear enough about those limitations in the plugin description if you are surprised to learn about this after signing up/registering for the free features.

    I have run into some situations like that as well over the years which is why I tend to stay away from plugins like that. If they require a registration to use something that is free, and it’s not a app you use separately, then to me that is a red flag as it seems they just want your info to spam you about getting the premium version (this happened to me once).

    I use a lot of free plugins. I understand the plugin author’s need to have funds in order to continue developing, and I do support this as I have purchased many premium versions of plugins.

    Some of the things that plugin authors do with the free versions is borderline spammy in some ways, but this doesn’t happen to a majority of plugins out there.

    Just as a suggestion, I would recommend discussing your concerns directly with the plugin authors if possible, by posting in their support forum from the plugins page on WordPress, as they’ll be able to address those concerns in a better way than we can here.

    It’s very rare (almost unheard of) that a plugin submitted to the plugins directory is allowed to come through if it violates any rules – but that can happen after the fact as well if the plugin is changed later that adds some blockages that would have violated the rules. If that seems to be the case then reaching out directly to the plugins team via the email address shared in a previous response to this thread would be the best way to get someone to look into that specific plugin.

    I don’t think anyone here in this thread was bothered by your questions as they are valid concerns and that you were just asking this out of curiosity and not to complain about it. It’s hard to read tone via a forum response – and a lot of us here in the forums can be a little direct and to the point which can sometimes sound like they were annoyed.

    I hope my thoughts on this were somewhat helpful, and again, I do agree that sometimes these plugin authors need to really think about how they are offering their features. I don’t have anything against plugin authors at all as their contributions to WordPress are important.

    @veggie_89 Just checked some of my custom post types and bulk editing shows the post type selector. Below is a copy of the code I use for my own custom post types. Maybe you can compare and see what you might be missing.

    function cpt_testpages() {

    /**
    * Post Type: Testing.
    */

    $labels = array(
    "name" => __( "Testing", "astra" ),
    "singular_name" => __( "Test Page", "astra" ),
    "parent_item_colon" => __("Parent Item:" ),
    );

    $args = array(
    "label" => __( "Testing", "astra" ),
    "labels" => $labels,
    "description" => "",
    "public" => true,
    "publicly_queryable" => true,
    "show_ui" => true,
    "show_in_rest" => false,
    "rest_base" => "",
    "has_archive" => false,
    "show_in_menu" => 'site-pages',
    "show_in_nav_menus" => true,
    "exclude_from_search" => true,
    "capability_type" => "post",
    "map_meta_cap" => true,
    "hierarchical" => true,
    "rewrite" => array( "slug" => "testing", "with_front" => true ),
    "query_var" => true,
    "menu_position" => 20,
    "supports" => array( "title", "editor", "thumbnail", "excerpt", "custom-fields", "comments", "revisions", "author", "page-attributes", "post-formats" ),
    );

    register_post_type( "cwgtestpages", $args );
    }

    add_action( 'init', 'cpt_testpages',1 );

    I use this plugin all the time and have the latest version of WP installed and have no issues.

    I believe you are referring to the %site_title% – %post-name% in the browser tab. If so, you can change the first part of that under the WP Dashboard under “Settings > General” and change site title there. This can also be done in the site editor > site identity if you want.

    Additionally, if you would like to change something for this in Rank Math, I believe you’ll find that under WP Dashboard > Rank Math SEO > Titles & Meta

    WordPress always “expects” a slug for a custom post type. If you remove the slug completely, and you have a page or post in another post type (such as posts or pages), or post in same category name which has the same slug for the content (ie… post-title or page-title), then it would conflict and you would most likely face issues on those pages due to those sharing the same full URL, which could be what the issue was with critical errors – though I wouldn’t imagine the whole site going down.

    If you remove the slug, you would need to add custom rewrite rules.

    I did a little research for you and it looks like, for the video post type that this might work (please note that I have not tested this as I don’t have access to the theme). Please take a backup or know how to undo this if you have problems.

    function change_post_type_slug() {
    $args = array(
    'rewrite' => array( 'slug' => '/' ), // Attempts to remove the slug
    // other post type arguments
    );
    register_post_type( 'video_skrn', $args );
    }
    add_action( 'init', 'change_post_type_slug' );

    function custom_rewrite_rules() {
    add_rewrite_rule('([^/]+)$', 'index.php?video_skrn=$matches[1]', 'top');
    }
    add_action('init', 'custom_rewrite_rules');

    My suggestion would be to instead just change the slug to a different slug that makes more sense for your website. For example, to change that slug to just /video/, then you would want to use this code instead.

    function change_post_type_slug() {
    $args = array(
    'rewrite' => array( 'slug' => 'video' ), // Sets the slug to /video/
    // other post type arguments
    );
    register_post_type( 'video_skrn', $args );
    }
    add_action( 'init', 'change_post_type_slug' );

    If you need to do this multiple times, make sure to change the function name. So instead of change_post_type_slug() you could think about using change_video_skrn_slug()

    I hope this helps or at least gets you in the right direction.

    Most importantly, have a super awesome weekend.

    Kevin

    @rpmtl22 Yes, you would only need to “Upgrade Networks” when prompted to do so by the WordPress admin whilst logged into and viewing the Network Admin area.

    I have wondered about this myself in the past. Basically, when doing any WordPress updates, there are times when you won’t see that, which is usually on minor updates, and on some major updates as well. I believe, based on what I have experienced, that most major WordPress updates tend to have some kind of update for the WordPress Network as well.

    Thanks for sharing what you have found with the community here. I love using the multisite network when I have a bunch of sites that share either similar topics or use the same theme and plugins.

    Have a great day 🙂

    Kevin

    Kevin McClellan

    (@crazywpgeek)

    Thanks @chrishadley for the response and for taking the time to push out an update. It’s much appreciated. 😎

    Agree 100%. Plugin author could take 1 hour of time and just test the plugin on latest WP, and then release update which says in changelog that they “Tested with Latest WP version” and then leave it at that.

    I can confirm myself that this plugin works great on the latest WordPress version without any issues. It’s not a heavy plugin anyways and probably doesn’t need to be updated, but doing the above will show that this plugin is still checked occasionally and not abandoned.

    Thread Starter Kevin McClellan

    (@crazywpgeek)

    As issue is solved on our end I am marking as resolved. Thanks again.

    Thread Starter Kevin McClellan

    (@crazywpgeek)

    Really appreciate all the help looking into this issue. We had a small issue on our end and this is solved now.

    Thread Starter Kevin McClellan

    (@crazywpgeek)

    No meaningful error log was generated. Allow me some more time to double check things.

    Thread Starter Kevin McClellan

    (@crazywpgeek)

    Hi Joachim, I am curious if you have had a chance to check the PHP API?

    Thread Starter Kevin McClellan

    (@crazywpgeek)

    It’s the PHP API as far as I’m aware. I’ll ask our developers to reach out as I have no idea where the code is in our plugin for handling this specific integration. Is it fine if I DM you on slack?

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