Giter Site home page Giter Site logo

Comments (21)

jacotijssen avatar jacotijssen commented on August 17, 2024 5

@Tam, @ethercreative I know you guys are busy, but this seems to cause a lot of issues for several people. I think some people might not even know their site is not indexable anymore, which can cause a lot of damage. Is it possible to take a look at this?

from seo.

ewanduthie avatar ewanduthie commented on August 17, 2024 5

@ethercreative +1 to merge this PR please! We have had two sites affected by the same.

from seo.

jannisborgers avatar jannisborgers commented on August 17, 2024 4

+1, please merge this PR ๐Ÿ‘

Today I noticed this issue several weeks after a new site launched and countless times of re-validating in Search Console (which unfortunately doesn't give a reason for not indexing the pages). The only option right now is disabling the plugin alltogether, as the issue is buried in the plugin code. This will also remove the sitemap.xml, which is the reason I use this plugin on this project.

from seo.

rydncn avatar rydncn commented on August 17, 2024 4

@cstudios-slovakia we have a site currently on Craft v4.3.3 and the plugin is working by adding ENVIRONMENT alongside CRAFT_ENVIRONMENT in the .env file. Hope this helps as a hotfix for everyone until this is sorted.

CRAFT_ENVIRONMENT=production
ENVIRONMENT=production

from seo.

ItagMichael avatar ItagMichael commented on August 17, 2024 4

I understand this is a free plugin and I hate to say it, but is there a reason why this hasn't been fixed? The issue seems quite serious and easy to miss until it is too late for those unaware. Easy fixes have been proposed, is there a reason why one cannot be merged?

from seo.

ryanmasuga avatar ryanmasuga commented on August 17, 2024 4

@jacotijssen It would be nice thing to warn potential users on the Craft Plugin store page that this may be abandoned (I think they do that?). It's got over 16,000 active installs - and really shouldn't be adding to that number with issues like this one that may catch people unaware.

(I've been notified that Craft is reaching out to the developer, and if they don't hear back in a specified time, they mark it as abandoned.)

from seo.

SoftboiledStudios avatar SoftboiledStudios commented on August 17, 2024 3

+1 to merge PR!!

from seo.

jannisborgers avatar jannisborgers commented on August 17, 2024 3

@cstudios-slovakia we have a site currently on Craft v4.3.3 and the plugin is working by adding ENVIRONMENT alongside CRAFT_ENVIRONMENT in the .env file. Hope this helps as a hotfix for everyone until this is sorted.

CRAFT_ENVIRONMENT=production
ENVIRONMENT=production

This works in Craft 4.3.1 with SEO plugin 4.0.3.

from seo.

pascalminator avatar pascalminator commented on August 17, 2024 3

So... the plugin is now officially abandoned. Shame because it was the only free SEO plugin for Craft.

from seo.

P4KM4N avatar P4KM4N commented on August 17, 2024 2

+1

from seo.

jonathanpardon avatar jonathanpardon commented on August 17, 2024 2

I confirm, the check for the environment is not right in the SEO source - SeoService.

$env = getenv('ENVIRONMENT') ?? getenv('CRAFT_ENVIRONMENT');

==>> getenv('ENVIRONMENT') with a default craft cms .env config (with no ENVIRONMENT config), will always return false (not null), so in the lines bellow will always set the x-robots-tag to 'none,noimageindex'.

// Always noindex except on production environment
if ($env !== 'production')
{
	$headers->set('x-robots-tag', 'none, noimageindex');
	return;
}

===>> the fix would be reworking the ?? to a check on a false value

So indeed a quick fix is to add ENVIRONMENT=production to your .env, but hope this will be fixed in the future.
ENVIRONMENT=production
CRAFT_ENVIRONMENT=production

from seo.

brandonkelly avatar brandonkelly commented on August 17, 2024 2

The plugin should be using Craft::$app->env, rather than worrying about how it was set exactly.

from seo.

ryanmasuga avatar ryanmasuga commented on August 17, 2024 1

Does anyone even maintain this anymore? This is a big enough issue (that is easy enough to fix) and is not being addressed that I clicked "Report plugin" in the Craft Plugin store (right side: https://plugins.craftcms.com/seo) to see if the Craft devs can figure out if this developer is still around - or warn users it may not be actively maintained.

from seo.

jacotijssen avatar jacotijssen commented on August 17, 2024 1

Does anyone even maintain this anymore?

@ryanmasuga well, with 118 open issues and no updates in the last 9 months, I think we all know the answer to that question ๐Ÿ˜ฅ

Since this is a open source plugin, I find it very difficult to "report" them, especially because (apart from this issue) I'm very grateful for this plugin. But I also think this might be the only thing left to do.

So I joined you in reporting the plugin and hopefully everyone else here will do the same.

from seo.

remcoov avatar remcoov commented on August 17, 2024 1

Yep, #447.

from seo.

remcoov avatar remcoov commented on August 17, 2024 1

This was supposed to be fixed in 4.1.0, but we're still getting x-robots-tag: none on production?

from seo.

cstudios-slovakia avatar cstudios-slovakia commented on August 17, 2024

Is there any hotfix we can apply? One of our clients just lost all of its sites from Google.

from seo.

cstudios-slovakia avatar cstudios-slovakia commented on August 17, 2024

Here is hotfix for the template, but it does not solve the bug, just suppresses the symptoms:

{% if craft.app.config.env == 'production' %}
   {% header "X-Robots-Tag: all" %}
{% else %}
   {% header "X-Robots-Tag: noindex, nofollow, none" %}
{% endif %}

from seo.

SoftboiledStudios avatar SoftboiledStudios commented on August 17, 2024

Here is hotfix for the template, but it does not solve the bug, just suppresses the symptom

Here is hotfix for the template, but it does not solve the bug, just suppresses the symptoms:

{% if craft.app.config.env == 'production' %}
   {% header "X-Robots-Tag: all" %}
{% else %}
   {% header "X-Robots-Tag: noindex, nofollow, none" %}
{% endif %}

Were exactly do you put this then?

from seo.

ryanmasuga avatar ryanmasuga commented on August 17, 2024

We just discovered this today - wondering why all of one client's sites simply disappeared from Google's index.

Please merge one of the pull requests.

from seo.

bjprodneyl avatar bjprodneyl commented on August 17, 2024

This was supposed to be fixed in 4.1.0, but we're still getting x-robots-tag: none on production?

Same here. Seems like I had it working by adding a robots.txt file to my server, but after the update it is showing noindex tag in pages again.

from seo.

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.