Giter Site home page Giter Site logo

Comments (11)

rhukster avatar rhukster commented on May 26, 2024 1

Never noticed a problem on any server I host with. Or local which also uses a case sensitive file system, but that doesnโ€™t mean itโ€™s not an issue.

Iโ€™ll take a look at this today

from grav-plugin-sitemap.

zouloux avatar zouloux commented on May 26, 2024

Ok just saw it has been patched but not released yet ๐Ÿ˜…

from grav-plugin-sitemap.

Fabien-Flerchinger avatar Fabien-Flerchinger commented on May 26, 2024

I saw thats this issue was closed but i still found an error. In my case i basically installed last version of plugin. Then locally all works well with declaration ( sitemap.php ) :

use Grav\Plugin\Sitemap\SitemapEntry;

Everytime i deploy to one server, there is an error : Class 'Grav\Plugin\Sitemap\SitemapEntry' not found

So i renamed to :

use Grav\Plugin\Sitemap\sitemapentry;

Just after that everything works fine. Can you please advice about this error? Thank you.

Thats an urgent topic

from grav-plugin-sitemap.

zouloux avatar zouloux commented on May 26, 2024

Hi @FabulousF, I rename file with Ci for now, so if plugin update is done by Admin it will fail. We may propose a PR, we can also do a fork and install it manually. No perfect solution but I think they need time to process updates.

from grav-plugin-sitemap.

Fabien-Flerchinger avatar Fabien-Flerchinger commented on May 26, 2024

Hi @zouloux, ok thank you for your response. For instance i did manually my changes, waiting for official update.

from grav-plugin-sitemap.

rhukster avatar rhukster commented on May 26, 2024

Are you guys on the latest 2.0.2 version of sitemap? It was released a couple of weeks ago. This has the SitemapEntry.php case issue was actually fixed in 2.0.1 back in July.

If you still have an issue it might be related to an out of date composer autoloader. I've updated that in this commit: 9e3ea46

You could test by downloading the zip file of the develop branch here: https://github.com/getgrav/grav-plugin-sitemap/archive/develop.zip and replacing your files.

from grav-plugin-sitemap.

Fabien-Flerchinger avatar Fabien-Flerchinger commented on May 26, 2024

Hello @rhukster, thx for feedback. Yes i'm using last version of plugin and also last version of Grav.

I think maybe i'll try to update composer :
bin/grav composer --update

right?

from grav-plugin-sitemap.

rhukster avatar rhukster commented on May 26, 2024

That updates Grav's vendor libraries / autoloader, what you need to try is to update the ones in the sitemap plugin. So you have to:

cd user/plugins/sitemap
composer update

Assuming you have composer installed on the system.

Or grab the zip I linked to and replace the sitemap plugin.

from grav-plugin-sitemap.

Fabien-Flerchinger avatar Fabien-Flerchinger commented on May 26, 2024

ok i'll try thank you

from grav-plugin-sitemap.

Fabien-Flerchinger avatar Fabien-Flerchinger commented on May 26, 2024

Hi back. I had an outdated version of Composer. I did well cmd : composer update into ( user/plugins/sitemap )

System updated those two files :

user/plugins/sitemap/composer.lock
user/plugins/sitemap/vendor/composer/autoload_real.php

Then i changed again name i did before :

Grav\Plugin\Sitemap\SitemapEntry;
instead of
Grav\Plugin\Sitemap\sitemapentry;

I have now same error than before :

Class 'Grav\Plugin\Sitemap\SitemapEntry' not found

Screenshot 2020-12-29 at 15 47 47

from grav-plugin-sitemap.

rhukster avatar rhukster commented on May 26, 2024

Don't change anything in the sitemap plugin, it does work fine as-is. It's just your system that is holding on to old references. Try clearing PHP opcache, or restarting the PHP-FPM process, or rebooting the server.

from grav-plugin-sitemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.