Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter rphair

    (@rphair)

    OK, thanks @benjamin, I can see that the code is at that link too. The inline comments correspond exactly to those in the larger file. And, unless I’ve missed it, at the source web site there is still no high-level description of all the class functions that correspond to these Storage & Mapper objects.

    If the plugin is truly lacking that kind of high-level description, it means that themers have to reverse-engineer an API based on going through the code… whether it is one massive file or dozens of little ones, the difficulty is the same.

    There is an additional problem: our web site broke in this case because a previous designer relied upon an array reference in the legacy code to determine the gallery path. Now, in the current version, the same data is available only in an object-oriented system. Unless the API for the Gallery data is documented anywhere, there is no assurance we would be able to correct our web site quickly, or at all, if it were to change again.

    Your last response suggested I thought the problem was “too many lines of code in the file.” That’s not the problem at all… it’s that the plugin appears to be undocumented. Developers need a documented API to work with other people’s code: that’s the bottom line all over the industry. I appreciate your help, but if we don’t get a positive response about this documentation in code or online, we will have to assume it doesn’t exist and look for something more developer-friendly.

    Thread Starter rphair

    (@rphair)

    thanks @benjamin, that’s great: the images are now restored to our site’s custom theme.

    Please, to help me answer similar questions in the future: I can see in
    /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php
    that
    get_instance() on these Storage and Mapper objects provides us with some methods for accessing the gallery database. That’s great… but for the second part of my original question, where are these methods enumerated?

    That is to say, where is the description of the Storage & Mapper API’s… or are the class functions to be reverse engineered by themers from the 4819 lines of code in package.module.nextgen_data.php?

    Thread Starter rphair

    (@rphair)

    to illustrate: we are just trying to determine the Gallery Path from the Gallery ID as shown on this screen:

    http://cosd.com/stuff/ngg-gid-to-pathname.jpg

    There is some good documentation in /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules but I haven’t yet found a description of the arrays or objects that the plugins are working with. It would be wonderful to have this information, but in the meantime our site is down until we can find a mapping between the gallery ID & gallery pathnames and put it back into our custom theme.

    I can confirm resolved, from my point of view. After migration I tested plugin upgrades, page creations & removals. Even as of WP 4.2 it doesn’t care that the server doesn’t support utf8mb4_unicode_ci, even if it was installed on a server that supported it (I guess it fails back to utf8_unicode_ci).

    Thanks very much to Cory & Trevellyan, and I agree it would be vital for this to be the installer, even as an “advanced” option, since so many people will have to move development sites into production on brain-dead hosting.

    Thread Starter rphair

    (@rphair)

    I see & probably my “reset” of the clearfix wasn’t working because of a CSS specificity problem. Your explicit declaration of the correct properties for the print view in the #content element fixes that.

    I’ve added your extra code to the Frontier parent theme (version 1.2.3) rather than the child style.css, so it will be consistent with future versions even if you change things a bit. Thanks for the excellent support.

    Thread Starter rphair

    (@rphair)

    Marking as resolved, also noting that other solutions are concurrently being posted for variations of this same problem.

    Thread Starter rphair

    (@rphair)

    dear Cory: thank you so much for tuning in and for providing and supporting such a great plugin. Yes, you are right, the default PHP installation on Amazon EC2 was missing mbstring. I’ve installed it and now the Duplicator packages are building properly with no errors.

    BTW for others on AWS Amazon Linux: this is done by adding the package according to your version of PHP, e.g.:

    php56-mbstring
    php55-mbstring
    php54-mbstring
    php-mbstring

    Web server also needs to be restarted afterwards.

    Thread Starter rphair

    (@rphair)

    A further note: I tried this again on a site that is living longer than usual on the same web host (our development server), which has also been automatically upgraded to WP4.1.1 (though it is still on an older version of the Duplicator plugin, Version 0.5.10).

    We are getting the exact same error on the second site a well-developed site, but still not huge: a report of failed package generation, though the logfile reports the package files were generated fine.

    On this second site, several Duplicator backups have already been made in older versions of WordPress. There are many reports that Duplicator plugin is working perfectly on WP4.1.1, but we still really need to know why the plugin is no longer working anywhere on our development server.

    What can we check besides the logfile and the information already reported above?

    Thread Starter rphair

    (@rphair)

    Thanks @ron, I think we have enough information here to mark this issue as resolved. For our own two- or three-site network I think I am OK with the work/issues, since nobody has suggested any specific way around them so far and the plugin has made our simple site work as planned.

    Once I personally have a better understanding of how WordPress Permalinks work, perhaps we will be able to do the desired thing with some mod_rewrite rules and then we could deactivate the plugin. Even better if the WP development team could make domain mapping part of the mainstream.

    Thread Starter rphair

    (@rphair)

    dear @ron, thanks for your response & I can see what you are saying but I disagree:

    there are probably scenarios where that would be the case but a network using domain mapping is not one of them.

    To test this I momentarily turned off the Domain Mapping plugin and all pages on both sites reverted to their subfolder-based URLs (e.g., clicking our Blog link on the sl.cosd.com site pointed to http://54.76.48.242/sl/blog/ . In light of our earlier discussion, yes I cleared my cache while testing this πŸ™‚ .

    Therefore I believe it must be the Domain Mapping plugin that is correctly rewriting the URLs in this multi-site configuration, so my argument above cannot be so easily thrown out.

    Thread Starter rphair

    (@rphair)

    After a fourth day of trial and error I have found a solution. This will be obvious to people having experience with this plugin and/or Multi-Site networks, but that is exactly why we needed help in the first place.

    The site configuration, as originally described in the first posting, was mostly working. We only needed to visit Network Admin > Sites and Edit each of our subfolder sites to show the Settings tab, then set the Siteurl parameter to our desired URL for each mapped domain. Obviously (?) this needs to be done after the domain mapping is set up, so as not to break the sites.

    Prior to making this change, Siteurl still showed the sub-folder sites in our network. This is why the unmapped domains kept showing up in all our URLs. Our sites are now bouncing merrily along on the domains sl.cosd.com and st.cosd.com.

    Contrary to what @ron said above, we have everything working now without having any Primary domain set. Furthermore, setting a Primary domain in any configuration described above has caused the domain mapping and/or URL resolution on all other sites to break.

    I have created all the major site components so far like Blog entries with pretty permalinks, CMS pages, custom menus, and swapped the Home and Blog pages, and so far it’s all working. We have one or two more plugins to install that will utilise the Multi-Site configuration and if there are any general problems I will post here.

    I am not trying to be either a hero or a fault-finder, but I think this is a case in point that this plugin could use some documentation addressing the above case, and in general illustrating more practical examples and how to achieve them. I’ll be happy to mark this topic as “resolved” if we see any responses to that effect.

    Thread Starter rphair

    (@rphair)

    dear @ron – thanks again for the response, which crossed in while I was editing the last post.

    That could be your browser following the cached redirect. You would need to clear your browser cache.

    I have cleared the cache, which does change the redirect. It now redirects from st.cosd.com (our mapped domain) to st.sl.cosd.com (our subdomain site)… i.e., in the opposite direction that we need it to go.

    I am still hoping to go back to first principles, to see how a site like this should be set up. Our blank site as it exists now is probably set up wrong anyway and I’d happily destroy it in favour of a proper design, whatever the best practice may be for a site with the characteristics described above (1-2-3-4).

    Thread Starter rphair

    (@rphair)

    Reinstalling the site with subdomains didn’t work either. When installing our site as sl.cosd.com, our only option for creating a Site was to set it up as st.sl.cosd.com which we then mapped to st.cosd.com .

    The main site sl.cosd.com then worked as predicted, but the mapped domain st.cosd.com would then redirect to sl.cosd.com/wp-signup.php?new=54.76.48.242 which displays the content Greetings Site Administrator! You are currently allowing β€œnone” registrations. To change or disable registration go to your Options page.

    I appreciate that this plugin is available but I am really frustrated that we can’t find a single example anywhere on the Internet about how this is supposed to be set up for anything other than a “hierarchy” of sites and nested DNS domains. I’ve seen from other postings that people have gotten Domain Mapping to work when the domain mappings were arbitrary… doesn’t wordpress.com itself work this way?

    Please, if I may start this question anew: We are just trying to set up a basic test case with these characteristics:

    1. WordPress is installed on an IP address (since there will be no web site there, and because we don’t want difficulties changing a “primary” site name when we move from development to production).
    2. Then we set up a multisite network on this site, create two Sites on the multisite network, and install the Domain Mapping plugin.
    3. Then we map two development domains (sl.cosd.com and st.cosd.com) to these Sites, and build our sites there.
    4. When done, we map our two production domains to these sites, and fix the links in our content accordingly.

    We don’t know, and don’t really care, whether this is done with a sub-domain or sub-folder installation, as long as we know which one to use and why. We just please need the help of someone familiar with this plugin to please briefly explain how to set up a domain mapping for a new site with the above qualities, since the plugin instructions don’t have this level of detail.

    If there is anything wrong with the premise above, we would really appreciate the help of someone who has some experience with the Domain Mapping plugin to briefly, but accurately, describe the next closest thing that will be possible.

    This would be a common testing & development scenario and I am sure this will benefit many WordPress designers. If we can just be prompted in right direction I will post complete instructions here when we have it working.

    Thread Starter rphair

    (@rphair)

    FYI I am reinstalling our site now with subdomains, so the links above might not be working for a bit. With no answer to the question above I think it is our only way forward. If that turns out to be the solution I will summarise here.

    Thread Starter rphair

    (@rphair)

    dear @ron, thank you so much. I have set sl.cosd.com as the primary domain, and now it is serving that subfolder site’s content under that primary domain.

    The other domain, st.cosd.com, still redirects to 54.76.48.242/st without our mapping having any effect.

    What else could I have missed? Do I need to reinstall the site using subdomains instead of subfolders, as suggested in that other thread?

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