Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)
  • Thread Starter Don

    (@55don)

    Hi Gregory… the following fatal error was thrown today by cerber-common.php on line 367:

    PHP Fatal error: Uncaught ValueError: strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)

    Don

    Thread Starter Don

    (@55don)

    Thank you Gregory…

    I’ll be looking forward to your next release because this isn’t the only issue I’m facing on my site since moving to MySQL 8.0 and AlmaLinux 8.8.

    Don

    Thread Starter Don

    (@55don)

    Upgrading from MySQL 5.7 to MariaDB 10.3 appears more complicated (more warnings) and MariaDB 10.3 has a end of life data of May ’23.

    How about this question…

    The MySQL/MariaDB Upgrade checker is also saying, It is strongly advised to replace zero values (dates and timestamps) with valid ones, as they may not work correctly in the future.

    Does this mean replace the zeros with, NULL? I don’t know what the warning means by “valid ones”.

    Thanks,

    Don

    I’m getting a “headers already sent message” (WP_DEBUG’, true) with:

    <?php echo do_shortcode(‘[searchandfilter fields=”search,post_types”]’); ?>

    placed just below <?php get_header(); ?> in my Divi full width template running WordPress 5.0.1.

    Thanks,
    Don

    P.S. Actually, it’s doing the same thing running WordPress 4.9.9 too.

    • This reply was modified 6 years, 2 months ago by Don.
    • This reply was modified 6 years, 2 months ago by Don.
    Thread Starter Don

    (@55don)

    Thanks, I’ll review the Codex information with respect to Ajax and evaluate some plugins.

    Don

    Thread Starter Don

    (@55don)

    You lost me at, “The server side Ajax handler…”.

    I was hoping all I would need to do is specify the path to admin-ajax.php in my jQuery script.

    I’m wondering if I should be looking at purchasing a WordPress search plugin instead of investing any more time trying to develop something on my own. Can you recommend a plugin that will query the DB for meta_keys/meta_values with preferably a slider interface rather than options from a select element or text input fields? At this point in time, a submit button isn’t a deal breaker.

    Thank you,
    Don

    • This reply was modified 6 years, 3 months ago by Don.
    • This reply was modified 6 years, 3 months ago by Don.

    Bloatware? It is 2.2 kilobytes and it exists for instructional (and perhaps nostalgic) purposes.

    If you don’t like the lyrics, feel free to insert your own and curtail the sanctimony. I’ve added the lyrics to Rock Lobster and Love Shack in my copy of Hello Dolly. Can you find something wrong with that?

    How do you feel about Hip-Hop and Rap lyrics?

    55don

    Thread Starter Don

    (@55don)

    Nikolay,

    The only part of your code that modifies wp-signup.php from my theme’s functions.php is my_custom_css_for_wp_signup() which faithfully writes:

    <style> #setupform { display: none; } </style>

    to the <head> of wp-signup.php.

    Is there a way to check current_user_can(‘manage_network’) in the theme’s functions.php file; and, if it returns false, continue with a substitution for wp-signup.php stored in functions.php? Is it possible to trigger an entire substitution for a core file? As an administrator of a Multisite, it doesn’t bother me to have the capability to create sites until my disk is full.

    Thanks,
    Don

    • This reply was modified 7 years, 8 months ago by Don.
    • This reply was modified 7 years, 8 months ago by Don.
    Thread Starter Don

    (@55don)

    Thank you for the code, nnikolov… and thank you for the quick reply, I was not expecting that! :^)

    Your solution is light years ahead of the default WordPress action, unfortunately my_change_blog_signup_function() is not working. I’ll need to do some research because this is my first attempt at WordPress development… very interesting stuff!

    For now, I have your code inserted into the functions.php file of my current theme since it is the theme dedicated to my Multisite. Perhaps when I pick up more knowledge, I’ll utilize this code as a plugin.

    Thanks again,
    Don

    Thread Starter Don

    (@55don)

    I see my OP cannot be edited any longer; however, in an effort to clarify my goal, I’m hoping someone can help me implement the following logic.

    If $_SERVER[‘PHP_SELF’] shows the admin is on /wp-signup.php and the admin is not the Network Administrator and count(get_blogs_of_user($current_user->ID)) > n sites, echo a message requesting the admin remove a site and try again… or something to that effect.

    There’s another issue though. If the subsite admin currently owns <= n sites, the default WP message on wp-signup.php will display, “…There is no limit to the number of sites you can have…”. This message is printed to the browser by the function signup_another_blog() which starts at line 275 of wp-signup.php and I don’t know how to modify it (or replace it) without hacking the core.

    Thank you very much,
    Don

    • This reply was modified 7 years, 8 months ago by Don.

    You’re welcome.

    Don’t get me started on World politics! :^)

    Regards,
    Don

    • This reply was modified 8 years, 6 months ago by Don.

    Nick,
    You’re doing fine… https://factandficion.tv/nickfernandez is your subsite to which you can map a registered domain name, given the registered domain name is set to the same IP address as your Multisite installation at https://factandfiction.tv (AKA main site). If you want to map nickfernandez.com.au to the subsite https://factandficion.tv/nickfernandez, you’ll need to register nickfernandez.com.au with a Domain Registrar. I checked nickfernandez.com.au for an A record and couldn’t find one; and, don’t see a com.au TLD in my eNom list. It is in my OpenSRS list of TLDs, but it’s not cheap. Perhaps an AU Registrar can better assist you.

    There is an A record for nickfernandez.com that points to an IP address. If nickfernandez.com belongs to you, make sure its IP address agrees with the IP address of your Multisite installation and subsitute https://nickfernandez.com for https://factandfiction.tv/nickfernandez in the Site Address (URL) under the Info tab for https://factandfiction.tv/nickfernandez.

    Just a quick word about your statement above:

    “I am a bit confused about where you wrote above “your first subsite will end up being located at https://factandfiction.tv/nickfernandez/your-first-subsite.”

    You are taking my quote out of context. I said earlier:

    Assuming your Multisite is configured for subdirectories and you leave it as is, your first subsite will end up being located at https://factandfiction.tv/nickfernandez/your-first-subsite.

    Make sense?
    Don

    • This reply was modified 8 years, 6 months ago by Don.

    Nick,
    Have you tried adding a subsite yet?
    With respect to your screen capture, when you visit the interface associated to an actual subsite, the Site Address (URL) field is editable. In your screen capture, you are looking at the Info palette associated to the main site on the domain, factandfiction.tv.
    Unfortunately, it appears you installed your WordPress Multisite in a directory below your root. IIRC, your Multisite should be installed in public_html (Linux/Unix) in order to function properly. When you decompress your latest.tar.gz, don’t simply rename the wordpress directory to something else (it appears you renamed it to nickfernandez), move all the files contained in said wordpress directory up one level to public_html before running the installation process. That’ll place your main site at https://factandfiction.tv instead of https://factandfiction.tv/nickfernandez. Assuming your Multisite is configured for subdirectories and you leave it as is, your first subsite will end up being located at https://factandfiction.tv/nickfernandez/your-first-subsite.
    It’s up to you, but that’s a lot of typing.
    Don

    • This reply was modified 8 years, 6 months ago by Don.

    Recent WordPress updates (IIRC, since approx. version 4.5) have rendered domain mapping plugins obsolete.

    You can either:

    1) Leave the domain to be mapped onto your WordPress subsite at the domain’s registrar and set the domain’s IP address to your Multisite installation; or,

    2) Host the mappped domain where the Multisite is hosted as either an Alias (parked domain) or an Addon domain. If you choose this method and are operating under cPanel, the control panel will create and/or modify DNS zone files for your Addon/Alias and your mapped domain name will point to your Multisite.

    Next, login to your Multisite Dashboard and go to:

    My_Sites -> Network_Admin -> Sites OR just Sites from the Dashboard. They both take you to https://your-multisite-domain-name.com/wp-admin/network/sites.php

    Click the edit link under the subsite you want the registered domain name mapped to, and edit the Site Address (URL) under the Info tab, substituting your registered domain name for the subsite name.

    That should do it.

    Don

    Thread Starter Don

    (@55don)

    I wish I could have just clicked an edit button above to add some details, but I think I have some pertinent information that needs to be shared.

    When I remove the self-signed certificate from the cPanel Addon domain the following occurs:

    1) The SSL certificate on the main site continues to work fine for the domain it was issued.

    2) The redirection error disappears when the Addon domain name is typed into the browser’s URL window and the browser displays the subsite’s home page; however,

    3) The SSL certificate on the main site is applied to the Addon domain (the subsite) and is displayed as broken or invalid. When one clicks the lock link for more details, the “Issued By” field displays the CA that issued the valid SSL cert for the main domain.

    Sorry for spreading this out over two posts, but I’m wondering if I would be better off switching to a subdomain configuration and coughing up the dough for a wildcard cert. Then again, if someone wants to map a custom domain name to their subsite, would I be back in the same boat?

    Thanks,
    Don

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