Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • PS Changing date_default_timezone_set() breaks CF7’s _date and _time variables. Sigh.

    There seems to be a conflict in the way the date header is set between wordpress/wp-settings.php#L43

    // WordPress calculates offsets from UTC.
    date_default_timezone_set( 'UTC' );

    and wp-includes/class-phpmailer.php#L2671

    public static function rfcDate()
    {
    //Set the time zone to whatever the default is to avoid 500 errors
    //Will default to UTC if it's not set properly in php.ini
    date_default_timezone_set(@date_default_timezone_get());
    return date('D, j M Y H:i:s O');
    }

    (I had date set to JST on server and in WP and php.ini, but still got UTC).

    You can get around this by changing the line in wp-settings.php to your preferred timezone as per http://project-syatiku.com/archives/191.html

    Possibly related:

    https://core.trac.wordpress.org/ticket/11665
    https://core.trac.wordpress.org/ticket/11672

    HTH

    Thread Starter boblet

    (@boblet)

    oh yes 😀

    Thread Starter boblet

    (@boblet)

    Hey Anrdea_r,

    sorry I was using the admin area terminology. maybe I’m being slow, but how would I use get_blogaddress_by_id to select via blog ID? In the link you provide it states:

    Description: Returns the address of the blog specified by ID
    Parameters: $blog_id (integer) (required) ID of blog queried.

    It seems this should be used when I want to know what the blogaddress is for a certain blog ID, not for returning the current blog’s blog ID for evaluation. Just in case I tried an if statement:

    <?php if( get_blogaddress_by_id(2)) { ?>Yo<?php } ; ?>

    This evaluated to true (printed “Yo”) on two different blogs (blog ID 1 & 2).

    Thanks again for your help, and if I’m misunderstanding something please let me know

    peace – boblet

    Thread Starter boblet

    (@boblet)

    Hey Andrea_r

    Unfortunately that function requires the site ID, which is the thing I want to use as an if loop variable… as I mentioned in my post 😉

    peace – boblet

    Thread Starter boblet

    (@boblet)

    It SHOULD have warned you, but if you’d previously changed /blog/ to nothing, then yeah, it corks up the warnings something fierce.

    I renamed the /blog2/ site to /blog/ before editing core files, as at that stage I thought it’d work 🙂 I was unaware of the restriction at that stage. The other renaming was to change the root site “blog” page (allowing me to apply a custom template) to blog2. When everything went pear-shaped attempts to change this back to “blog” resulted in blog3, blog1 etc post-update.

    Guess I’ll have to set up a localhost instance and troubleshoot making an /animals/ site 🙂

    thanks again

    Thread Starter boblet

    (@boblet)

    Hey again ipstenu 🙂

    It was a pity that my renaming of /blog2/ to /blog/ got around all the warnings and preventions on this, but such is life. I’m more interested in moving page-based content on my root site to a subsite, as that seems like it should be possible. For example:

    Root site:
    /animals
    /animals/cow
    /animals/cow/bull

    to

    MU (sub)site /animals/:
    /
    /cow
    /cow/bull

    Any advice on doing this? my first attempt left me with an empty Apache directory index for /animals/, although some content was showing up in /animals/animals/ etc

    peace – boblet

    Thread Starter boblet

    (@boblet)

    @ipstenu thanks for your help! I read it soon after you posted but am only just replying…

    I tried it and it seems to have worked without destroying anything. Unfortunately my plan was to make sites that included a / in subsite site addresses (e.g. /my/folder/) and I now see that’s not allowed

    Can’t you move it at least in sub-folder level?</p>

    Nope — not my server, but keep in mind the main server’s sub-sub-folder maps to a different website’s subdomain, so I guess that does make it installed at root 😉

    What do you mean by “running of a sibling folder”?

    typo — should have been in not of. again that’s the strange server setup; current website (on subdomain) is also running out of a sub-sub-folder on the main server

    You might want to consider turning your main site, the one installed in root now, to Multisite, and then importing the other ones as sub sites?

    again, the main site is not something I have anything to do with, but that’s what I’m doing for this site. Unfortunately because the sites must all be subdirectories I won’t have quite the freedom I hoped with URLs (a /folder/ sub-site is ok, but not a /my/folder/ site). Oh well.

    New question: using /%cateogry%/%postname%/ and nested categories I made a two-site IA;
    /blog/
    /site/2009/

    It’d be nice to split these into two subsites;
    /blog/
    /2009/ (as I can’t use /site/2009/ with multisite)

    Any thoughts on a plan of attack? (I’m leaving it in the too hard basket for the moment 😉

Viewing 8 replies - 1 through 8 (of 8 total)