Class "Uri" not found --> site view #1060

Open
opened 2024-02-20 17:55:14 +00:00 by jjs · 5 comments

Steps to reproduce the issue

create a site view and add it to a menu

Expected result

see the site view

Actual result

-Class "Uri" not found. that with my own test component. DOn't know exactly what I'm doing wrong, I just added some of the pieces of script which you see at site view.

-with the Hello World I get this error: syntax error, unexpected token "[", expecting "function" or "const"

-with the Looks/looking demo I get: syntax error, unexpected token "*"

So might be I'm doing wrong, but

System information (as much as possible)

  • OS Name & Version: Ubuntu 22.04
  • MySql Version:
  • Apache Version:
  • PHP Version: 8.0.28
  • Joomla Version: 3.10.12
  • JCB Version: 3.1.39
  • Browser: Firefox

Additional comments

### Steps to reproduce the issue create a site view and add it to a menu ### Expected result see the site view ### Actual result -Class "Uri" not found. that with my own test component. DOn't know exactly what I'm doing wrong, I just added some of the pieces of script which you see at site view. -with the Hello World I get this error: syntax error, unexpected token "[", expecting "function" or "const" -with the Looks/looking demo I get: syntax error, unexpected token "*" So might be I'm doing wrong, but ### System information (as much as possible) - OS Name & Version: Ubuntu 22.04 - MySql Version: - Apache Version: - PHP Version: 8.0.28 - Joomla Version: 3.10.12 - JCB Version: 3.1.39 - Browser: Firefox ### Additional comments

Hi,

What is the exacy code you put into your site view?

Hi, What is the exacy code you put into your site view?
Author

Hi Tom,

I've put this into the site view. Just copy paste from the red generated snippets.
<?php foreach ($this->items as $item): ?>
<?php echo $item->id; ?>
<?php echo $item->email; ?>
<?php endforeach; ?>

Hi Tom, I've put this into the site view. Just copy paste from the red generated snippets. `<?php foreach ($this->items as $item): ?>` `<?php echo $item->id; ?>` `<?php echo $item->email; ?>` `<?php endforeach; ?>`
Author

Oopsa, my mistake.
Think I found it.
I changed email to emailadress, so I removed that line.
It now gives the id.

Sorry.

Oopsa, my mistake. Think I found it. I changed email to emailadress, so I removed that line. It now gives the id. Sorry.
jjs closed this issue 2024-02-21 21:06:19 +00:00
jjs reopened this issue 2024-02-24 21:41:25 +00:00
Author

I'm reopening this because although the above was partly my mistake.

This error also pops-up when everything works right and! you have set the permissions correct.
So for instance if the menu link is clicked by a registered person and the permission under options of the component is not set right then this URI error is shown, which is not a wanted view I guess.
Is the permission set to allowed then the error is not shown.

Note I'm only testing on jml3 now.

I'm reopening this because although the above was partly my mistake. This error also pops-up when everything works right and! you have set the permissions correct. So for instance if the menu link is clicked by a registered person and the permission under options of the component is not set right then this URI error is shown, which is not a wanted view I guess. Is the permission set to allowed then the error is not shown. Note I'm only testing on jml3 now.
Owner

We will need more details to help here...

We will need more details to help here...
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1060
No description provided.