Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] URL pattern screen is not being loaded #150

Closed
SalahAdDin opened this issue Jun 1, 2024 · 4 comments
Closed

[BUG] URL pattern screen is not being loaded #150

SalahAdDin opened this issue Jun 1, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@SalahAdDin
Copy link
Contributor

SalahAdDin commented Jun 1, 2024

Bug report

Describe the bug

After setting up both the the sitemap plugins with the core, we want to generate the URL patterns, we go to the screen, and it does not load.

Steps to reproduce the behavior

  1. Go to Admin Panel
  2. Click on Webtools
  3. Click on URL Patterns
  4. See error

Expected behavior

We should see the screen available so we can edit the URL patterns.

Screenshots

image

Code snippets

If applicable, add code samples to help explain your problem.

System

  • Node.js version: v20.12.2
  • NPM version: 10.5.0
  • Strapi version: 4.24.4
  • Plugin version: 1.0.0-beta.11
  • Database: SQLLite
  • Operating system: Manjaro Linux

Additional context

I was using an old version of Sitemaps and I defined the URLs also; as there is no migration guide, I didn't migrate anything.

@SalahAdDin
Copy link
Contributor Author

@boazpoolman

From my investigation, I get that fetching the URL patterns always returns an empty array:
image

It is a problem since the index requires to get not an empty array of patterns:

if (loading || !patterns.length) {
    return (
      <Center>
        <Loader>{formatMessage({ id: 'webtools.settings.loading', defaultMessage: 'Loading content...' })}</Loader>
      </Center>
    );
  }

Is it intended to be like that? Is there any extra step to add URL patterns?

From the documentation we get that screen is where we define the patterns!

@MSACC
Copy link
Collaborator

MSACC commented Jul 22, 2024

Hello @SalahAdDin , thanks for sending in the bug report. We want to create robust Strapi plug-ins and thus want to help you (and maybe others) with this experience.

Could you provide us with some more information? What are the contents of your wt_url_patterns table in the database? Maybe it is empty or missing a value?

Thanks for letting us know!

Mathijs

@TMSchipper
Copy link
Collaborator

Hi @SalahAdDin, I have tried to reproduce this issue and I can confirm that this is a problem.
I'll update the label and we'll take a look at it soon. Hopefully I have informed you sufficiently, if you have any questions you can always contact us.

Kind regards,
PluginPal.

@boazpoolman
Copy link
Member

This issue has been fixed and released with v1.0.0-beta.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants