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

Shortcode update creating copies of itself #102

Open
danjames68 opened this issue Mar 12, 2021 · 3 comments
Open

Shortcode update creating copies of itself #102

danjames68 opened this issue Mar 12, 2021 · 3 comments
Labels

Comments

@danjames68
Copy link

I updated the shortcode plugin after the most recent update and it immediately threw an error - I found clones of all the files in the plugin folder, all called 'xxx 2.php' where 'xxx' is the file name. I assumed the update had gone wrong and threw out all the doubled files (which included non PHP files - js, readme.md, map, etc).

Reloaded and it has worked for five minutes before throwing the same error again, so I'm assuming it's generating these files itself.

@danjames68
Copy link
Author

commenting out the line on 116:
$this->shortcodes->resetObjects(); // clear shortcodes that may have been processed in this execution thread before
seems to be a temporary fix.

@rhukster
Copy link
Member

This was a recent commit in the latest release. I've not run into any issues myself.

What is the error you get?

@rhukster rhukster added the bug label Mar 12, 2021
@danjames68
Copy link
Author

Hi Andy, as soon as I updated it threw an error: Cannot declare class Grav\Plugin\Shortcodes\Shortcode, because the name is already in use

I turned it off and had a look today and found copies of all the files in all the folders. So for example in 'classes > plugin' I found Shortcode.php and Shortcode 2.php - and the same for most of the files - all the js, json, repeated. No idea why.

If you can't think of an obvious problem maybe I should remove and reinstall - but I think it means I have to remove the upstream plugins too?

Grav v1.7.7 - Admin v1.10.6. Theme is a copy of Typhoon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants