Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • drcwp
    Participant

    Hello,
    I created a WordPress 6.7.1 instance in LocalWP to test this plugin, but it was not able to retrieve files from my GitHub repos.

    The logs are as follows:

    01/12/2025 15:58 – ********** Publishing posts by repository config ID **********
    01/12/2025 15:58 – Working with repository config ID 1
    01/12/2025 15:58 – Creating repository object
    01/12/2025 15:58 – Building repo structure …
    01/12/2025 15:58 – ********** END **********

    There is no error, but no pages or posts are created. I would like to know whether there is an incompatibility between LocalWP and this plugin and if there is any workaround. Thanks.

    Hi @drcwp,

    There is no restriction for local installation.

    Can you please check the following?

    1) Github username and repo names are correct
    2) Branch name is correct
    3) Folder to publish from is valid
    4) Check if the repository is public/private. If private, please enter the credentials in Git it write -> “general settings” section.

    If everything looks good, then can you please share the repo details? I’ll try to repro the issue on my end.

    Thanks,
    Aakash

    drcwp
    Participant

    Thanks for the quick reply. The repo I am using for testing is https://github.com/danielclow/docsrepo/tree/main/docs/en

    For this test I have made the repo public so authentication issues should not happen.

    The repo settings I am using in GIW are:

    GitHub username/owner: danielclow
    Repository name: docsrepo
    Branch to publish from: main
    Folder to publish from: docs/en
    Post type to publish to: Pages
    Author to set for the posts: drc (an administrator on my local WP deployment)
    Post content template: %%content%%

    Hi @drcwp,

    Thanks for sharing the details. I looked at the code and it seems there is a change in Github API on how it returns nested folders.

    Since you have provided docs/en it is unable to navigate with the new API.

    I’ll share a quick workaround tomorrow and address this in the next version of the plugin.

    Thanks,
    Aakash

    drcwp
    Participant

    Thanks Aakash. I changed my configuration from docs/en to just docs/ and indeed it does work properly even in Local.

    My testing is no longer blocked though it would still be great to see an updated version that can handle nested directories as some users may have this kind of structure in their repositories. Thanks again for creating this useful plugin.

    Hi @drcwp,

    Thanks for confirming. I’m glad it is helping you.

    It looks like the changes need some time to implement and test to pick a nested folder.

    I’ll ensure this is addressed in the next version of the plugin.

    Thanks,
    Aakash

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Subscribe to our Newsletter

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

By using this website, you agree to our Terms