• Resolved Aslan French

    (@thedonquixotic)


    So I just transferred my website from one local installation to another. Everything is working fine except my posts are not being inserted properly? Some weird behavior:

    I created a special multimedia gallery as a custom post type. I then insert it into blog posts or other posts where I want to have it. It was working on my old set up but when I migrated to a new localhost it stopped working.

    A new page with a newly created gallery post inserted into it doesn’t show anything at all.

    An old page with several galleries created prior to migration will put out a link to a page. I copied the custom template I use for the post insertion and put it in the theme root, along with the proper header footer etc includes so that it can render as a normal page, and it all renders fine. The images pop up, javascript works etc. No issues.

    But for some reason it’s not inserting the post into the page…. Any hints on what I’m doing wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Aslan French

    (@thedonquixotic)

    Also just to make sure I cover this, I double checked and the display in the shortcode is set to the the custom php template that I wanted it set to. And still no dice!

    Shortcode looks like this:

    
    [insert page='concert-photography' display='template-pages/single-gallery.php']
    Thread Starter Aslan French

    (@thedonquixotic)

    Been banging my head against the wall on this for an hour and a half. Restarted my computer, restarted MAMP, recreated a posts etc. Nada.

    I did finally get the page which was not even displaying the link to work though. The gallery name was Illustration, and so was the name of the post it was being inserted into, so the shortcode for insert post didn’t distinguish between the two. Just renamed the gallery to illustrations, and now it inserts fine just like all the rest. Well fine except for the fact that it’s not actually displaying the post, it’s just displaying a link to the post. Which is weird because I most def am using the custom php template etc.

    Also renamed the template to insert-post.php to make sure that it wasn’t having some backend interferences from the single naming convention for posts etc. Also removed the tags at the top of the test single-gallery.php in the root of the theme in order to make sure that wasn’t interfering either. Also renamed it null_single-gallery.php except for when I needed to test to see that the html css etc was all working correctly. When I enable that single post, and open up one of the galleries as a page, it looks good. No problems. Turned it off now though to make sure it wasn’t messing anything up, and still ain’t working ??

    Any help with this would be greatly appreciated. I’m trying to look around as much as I can. I have a feeling there’s something wrong with the use of the custom template?

    Also you mentioned in another post that the locations available for custom template files was made more strict. Where should I be putting my custom template files?

    Plugin Author Paul Ryan

    (@figureone)

    I think it’s probably related to the more strict custom template code. Can you help me diagnose the specific error by inserting the logging statements described in this other post, and then grab the relevant info from the logs?
    https://www.ads-software.com/support/topic/not-loading-template-after-update/#post-9564272

    You’ll notice in that case it seems to be an issue with directory separators (double-backslashes vs. forward slash), so I just need to get details on all the different installation environments to be able to fix up that code.

    Thanks, and sorry for your frustrations! Hopefully we can get this resolved soon.

    Plugin Author Paul Ryan

    (@figureone)

    A fix has been released in version 3.2.6, please update and let me know if that solved the problem.
    https://github.com/uhm-coe/insert-pages/commit/080f190658face8859896782b086634baffd50f8

    Thread Starter Aslan French

    (@thedonquixotic)

    Hey Paul, thanks that worked! And also the issue makes sense from reading your notes on the github page, since the environment I was was migrating from was a Linux machine, and now I’m working on a Windows machine. Thanks!

    Plugin Author Paul Ryan

    (@figureone)

    Great, thanks for following up!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post is not being inserted after migration?’ is closed to new replies.