Skip to main content
added information to the problem
Source Link
BNetz
  • 470
  • 2
  • 13

I just have been noticed by Google Search Console that there are two pages with Soft 404 errors. So I cannot be sure when the error appeared first.

When calling the URL I get a blank page with the error:

Parse error: syntax error, unexpected '/' in /var/www/…/system/ee/legacy/libraries/Functions.php(627) : eval()'d code on line 27

The strange thing is that only 2 (of about 1.500 pages with the same template) are concerned - the other ones work correct. As far as I can see in those pages there is nothing special (like php-code or using snippets).

When I close the entry I get a 404; when I reopen it the error appears again.

Already tried to clear caches (EE-caches as well as local browser-caches).

Anyone with any idea about this? Thanks in advance!

Edit 17/03/2019

As @jelle-dijkstra suggested I tried to recreate the entry. Something strange happens:

  1. I delete the old entry.
  2. I create a new one (just with blablabla-text). The new one is visible in the frontend without errors (URL like template/group/entryid or also template/group/urltitle/entryid)
  3. I change the entry-id in the database (via phpmyadmin in the tables exp_channel_data and exp_channel_titles). If I set it to the "old" entry-id I get the error in the frontend; if I set it to any other entry-id (like 9999) the entry is shown correctly in the frontend.

Also strange is that in the last two days 3 new Soft-404-errors for new entries occurred.

Any idea?!?

I just have been noticed by Google Search Console that there are two pages with Soft 404 errors. So I cannot be sure when the error appeared first.

When calling the URL I get a blank page with the error:

Parse error: syntax error, unexpected '/' in /var/www/…/system/ee/legacy/libraries/Functions.php(627) : eval()'d code on line 27

The strange thing is that only 2 (of about 1.500 pages with the same template) are concerned - the other ones work correct. As far as I can see in those pages there is nothing special (like php-code or using snippets).

When I close the entry I get a 404; when I reopen it the error appears again.

Already tried to clear caches (EE-caches as well as local browser-caches).

Anyone with any idea about this? Thanks in advance!

I just have been noticed by Google Search Console that there are two pages with Soft 404 errors. So I cannot be sure when the error appeared first.

When calling the URL I get a blank page with the error:

Parse error: syntax error, unexpected '/' in /var/www/…/system/ee/legacy/libraries/Functions.php(627) : eval()'d code on line 27

The strange thing is that only 2 (of about 1.500 pages with the same template) are concerned - the other ones work correct. As far as I can see in those pages there is nothing special (like php-code or using snippets).

When I close the entry I get a 404; when I reopen it the error appears again.

Already tried to clear caches (EE-caches as well as local browser-caches).

Anyone with any idea about this? Thanks in advance!

Edit 17/03/2019

As @jelle-dijkstra suggested I tried to recreate the entry. Something strange happens:

  1. I delete the old entry.
  2. I create a new one (just with blablabla-text). The new one is visible in the frontend without errors (URL like template/group/entryid or also template/group/urltitle/entryid)
  3. I change the entry-id in the database (via phpmyadmin in the tables exp_channel_data and exp_channel_titles). If I set it to the "old" entry-id I get the error in the frontend; if I set it to any other entry-id (like 9999) the entry is shown correctly in the frontend.

Also strange is that in the last two days 3 new Soft-404-errors for new entries occurred.

Any idea?!?

Source Link
BNetz
  • 470
  • 2
  • 13

EE 5.2: Parse error: unexpected '/' in … ee/legacy/libraries/Functions.php(627) : eval()'d code on line 27

I just have been noticed by Google Search Console that there are two pages with Soft 404 errors. So I cannot be sure when the error appeared first.

When calling the URL I get a blank page with the error:

Parse error: syntax error, unexpected '/' in /var/www/…/system/ee/legacy/libraries/Functions.php(627) : eval()'d code on line 27

The strange thing is that only 2 (of about 1.500 pages with the same template) are concerned - the other ones work correct. As far as I can see in those pages there is nothing special (like php-code or using snippets).

When I close the entry I get a 404; when I reopen it the error appears again.

Already tried to clear caches (EE-caches as well as local browser-caches).

Anyone with any idea about this? Thanks in advance!