Class "Uri" not found --> site view #1060
Labels
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1060
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
Additional comments
Hi,
What is the exacy code you put into your site view?
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; ?>
Oopsa, my mistake.
Think I found it.
I changed email to emailadress, so I removed that line.
It now gives the id.
Sorry.
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.
We will need more details to help here...