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

Adding snippets to head puts page offline #28

Open
Robertsdesign opened this issue May 20, 2021 · 11 comments
Open

Adding snippets to head puts page offline #28

Robertsdesign opened this issue May 20, 2021 · 11 comments

Comments

@Robertsdesign
Copy link

When I add the two snippets below to the head section the page goes offline with the message below.

'Add these two snippets to your head: <?php snippet('meta_information'); ?> + <?php snippet('robots'); ?>'

This page is currently offline due to an unexpected error. We are very sorry for the inconvenience and will fix it as soon as possible.

@S1SYPHOS
Copy link
Contributor

S1SYPHOS commented Jul 5, 2021

@Robertsdesign It's hard determining the cause of this problem without further context. Could you post the code inside your <head> element or provide further information about your situation / implementation?

@Robertsdesign
Copy link
Author

Hi
code inside section. Thanks. David

<!doctype html>

isHomePage()): ?> <title> Modern Web Design & Development | Scotland | UK | title() ?></title> <title>seoTitle() ->or($page->title()) ?> title() ?></title>

@S1SYPHOS
Copy link
Contributor

S1SYPHOS commented Jul 5, 2021

I don't see PHP opening or closing tags, like <?php, ?> or echo tags like <?= $variable ?>?

@Robertsdesign
Copy link
Author

The only PHP in the head section is used in the title.

isHomePage()): ?> <title> Modern Web Design & Development | Scotland | UK | title() ?></title> <title>seoTitle() ->or($page->title()) ?> title() ?></title>

@S1SYPHOS
Copy link
Contributor

S1SYPHOS commented Jul 5, 2021

Well, originally you wanted to know why including snippets from this plugin are throwing errors?

Sorry, I don't see the problem at hand 😕

@S1SYPHOS
Copy link
Contributor

S1SYPHOS commented Sep 1, 2021

@Robertsdesign Could you post your complete file content inside a block of triple backticks = ```

@Robertsdesign
Copy link
Author

Robertsdesign commented Sep 1, 2021 via email

@S1SYPHOS
Copy link
Contributor

S1SYPHOS commented Sep 2, 2021

I'll try to reproduce your problem using a fresh starter kit later - I'll get back at you!

@S1SYPHOS
Copy link
Contributor

Frankly, inserting your code doesn't throw any error / exception for me - I wasn't able to reproduce the problem you describe .. what's the current situation, did this maybe resolve itself somehow?

@Robertsdesign
Copy link
Author

Robertsdesign commented Oct 16, 2021 via email

@S1SYPHOS
Copy link
Contributor

"Thanks for investigating"

You're welcome!

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

No branches or pull requests

2 participants