• Resolved JK

    (@worldwidej)


    Hi there,
    I recently changed my old website with updated WP 4.4.2 to a multisite.

    All went well with separate photos and albums but I wanted to get rid of the constant call to add something to my wp-config, so I did that.

    First, the photos where gone, then they were mixed from all domains (only then, not before).

    I′ve tried another link but that doesnt do any change to the now working albums (photos belonging to the relevant domain, all well).

    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘atelier361.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    define( ‘WPPA_MULTISITE_BLOGSDIR’, true );

    /* That’s all, stop editing! Happy blogging. */

    But the call for action does not disappear either.

    WP Photo ALbum Plus Error message

    This is a multi site installation. One of the following 3 lines must be entered in wp-config.php:

    define( ‘WPPA_MULTISITE_INDIVIDUAL’, true ); // Multisite WP 3.5 or later with every site its own albums and photos
    define( ‘WPPA_MULTISITE_BLOGSDIR’, true ); // Multisite prior to WP 3.5 with every site its own albums and photos
    define( ‘WPPA_MULTISITE_GLOBAL’, true ); // Multisite with one common set of albums and photos

    For more information see: the faq

    If you upload photos, they will be placed in the wrong location and will not be visible for visitors!

    Then in the FAQ it says to “do it” on VII-A1 – but there is nothing to do there, is that an oly info?

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    No caching program or did you clear cache?

    Thread Starter JK

    (@worldwidej)

    Cleared my browser cache (Chrome) several times completely, logged out and back in again in to the website.
    Do I have to delete more, in the Dashboard?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    1. Are you really sure you have in wp-config.php:

    define( 'WPPA_MULTISITE_BLOGSDIR', true );

    and made no typos? I just verified that this works.

    2. I meant a caching plugin. If you have one, de-activate it temporary.

    Thread Starter JK

    (@worldwidej)

    First, thank you for your immediate responding!

    I did copy & paste with the extra line from the comment in the dashboard, and I have copied it in my post above. Do you see any typo there? I cannot find it but surely hope it is just that.

    And no, I have no caching plugin in use.

    Last night I checked the new website on my smartphones it is borken as predicted, photos from allover the 3 sites in the new sites slideshow.

    What else can it be/I do (I dont know how to change css/php)?

    Thread Starter JK

    (@worldwidej)

    I am not sure about BLOGSDIR or INDIVIDUAL, while I had tried INDIVIDUAL first. But the error lines where still there, so I tried with BLOGSDIR.
    My WP originally is from pre 3.5, but now of course updated to 4.4.2.
    Should I overwrite and use INDIVIDUAL once more?

    Thread Starter JK

    (@worldwidej)

    As with the additional line the slideshow was completely broken, no matter which of the two lines I added to the config.php, I have deleted the line again for now.

    Means slideshow in new site is running with only pics of other website, while pics of the album to be shown from new website only appear broken.

    Not sure if that is important, but all albums on the first/main domain are doing well. It is only the one (and only) album on the new subdomain that is kaputt.

    What am I doing wrong?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    First you should know what you want.

    See the topic IMPORTANT info for MULTISITE installations on https://wppa.opajaap.nl/changelog-general-update-info/
    and add the appropiate line to wp-config.php.

    DO NOT CREATE ALBUMS or UPLOAD PHOTOS until it is set up as you want!!

    If you choose the WPPA_MULTISITE_GLOBAL option, there is only one wppa system for all the sites and everythinmg should continue to work.

    If you want a wppa system for every site separately and you have …/wp-content/blogs.dir/[blogid]/ you should move the entire dir …/wp-content/uploads/wppa/ to …/wp-content/blogs.dir/1/wppa/
    and add define( 'WPPA_MULTISITE_BLOGSDIR', true ); to wp-config.php

    If you want a wppa system for every site separately and you have …/wp-content/uploads/sites/[blogid]/ you should move the entire dir …/wp-content/uploads/wppa/ to …/wp-content/uploads/sites/1/wppa/
    and add define( 'WPPA_MULTISITE_INDIVIDUAL', true ); to wp-config.php

    After this, de- and re-activate the plugin on every site. Your existing wppa installation will be that of blog #1.

    Note: Once you have set the right directive in wp-config.php, you can see in Table XII at the line WPPA_UPLOAD_PATH where wppa expects the diectory wppa/ ( that is where the photo files are ) to be.

    You are confusing me. I thought the problem is that the error message did not disappear when you add one of the three lines to wp-config.php
    Is that problem still there or is it not?

    Thread Starter JK

    (@worldwidej)

    “I thought the problem is that the error message did not disappear when you add one of the three lines to wp-config.php
    Is that problem still there or is it not?”

    Yes it is still there. Sorry for confusing you.

    But I have not done that lenghty process you describe before and which has to be done before uploading.

    I dont really care which system it is as long as it works, but preferably every site gets its own albums. I only tested different options in order to make it work (which did not work out).

    The main domain is old and filled with WPPA photo albums for years.
    I do not want to delete those. Is that necessary? In that case I cannot use the plugin for the subdomain but need to choose another photo plugin instead.

    Will follow the above now and let you know. Thanks for your help!

    Thread Starter JK

    (@worldwidej)

    Here is the present error message, after having integrated the 1 linein wp-config:

    WP Photo ALbum Plus Error message

    This is a multi site installation. One of the following 3 lines must be entered in wp-config.php:

    define( ‘WPPA_MULTISITE_INDIVIDUAL’, true ); // Multisite WP 3.5 or later with every site its own albums and photos
    define( ‘WPPA_MULTISITE_BLOGSDIR’, true ); // Multisite prior to WP 3.5 with every site its own albums and photos
    define( ‘WPPA_MULTISITE_GLOBAL’, true ); // Multisite with one common set of albums and photos

    For more information see: the faq

    If you upload photos, they will be placed in the wrong location and will not be visible for visitors!

    Thread Starter JK

    (@worldwidej)

    I just read through these new instructions again. Well, I can′t do all that moving, no way. I am not a computer programmer but a blonde woman. ??

    Also, as you wrote that I have to delete all my many albums from my main site too, that is out of question as well.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    It is obvious that you underestimate the complexity of changing an existing site to multi-site. It is complex, it just is…

    I can do the conversion of wppa for you, but i need full access as administator and ftp access as owner. I can imagine that you do not want to give that rights to a ‘stranger’, but in the case you want me to help, i must also say that i am very busy at the moment so it could take a few days. You can mail me directly at opajaap at opajaap dot nl

    Thread Starter JK

    (@worldwidej)

    Yes, sigh, looks like. Though I managed to set up the multisite (and another one on a differently used domain). And a complicated webshop too, by myself. But not this plugin. Which I really like for all the many different and easy to understand/set backend options.

    Thank you so much for offering to do that for me! I will email you the access data. There is no rush for the subdomain to work quickly, as the project it is for is not published yet.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I did not receive login data yet, but i might have a brilliant idea why your wp-config.php mod does not work.

    Just put back in wp-config.php:

    define( 'WPPA_MULTISITE_GLOBAL', true );

    make sure it is prior to the line:

    /* That's all, stop editing! Happy blogging. */

    but also, it still may be inside a comment block. This is the only possible cause i can think of. To make sure that this does not happen, add a start comment/end comment pair, so the entire fragment will look like:

    /* */
    define( 'WPPA_MULTISITE_GLOBAL', true );
    /* That's all, stop editing! Happy blogging. */

    Please try this. i really believe it should work again, with one global wppa system. I hope you can live with that, because converting into a per-blog system is really not recommendable for existing systems…

    Thread Starter JK

    (@worldwidej)

    hi jacob,
    i hadnt sent it yet as i was working on the site and you mentioned it could take you a few days. just wanted to email you now and will do so.

    as i have tried the above but there was no change. on my smartphone (windows, browsercache emptied) it is still showing the wrong photos.

    i dont have any caching plugin on my wp installation to empty that.

    if you say global is much easier than different systems for each subdomain, i am going for that!
    anything overly complicated is not necessary. also i have about 5 domains to do the same installation with. i dont know how the setup will work for the different domains album′s then, but will see it once it will work. it will surely be as easy as before for me-admin.

    will send you the links now.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘multisite addition to wp-config.php not correct’ is closed to new replies.