Joomla 2.5 - View not found - joomla

I downloaded the eventlist component for Joomla 1.7/2.5 (Component URL: http://www.joomlaos.de/option,com_remository/Itemid,41/func,fileinfo/id,6603.html)
To get output from this component I have to get to this url: [my site]/index.php?option=com_eventlist&view=categoryevents&id=1
THis worked fine! But i want to have the output only - without my site-Template!
So i added &no_html=1 to the url, because i read that this will be fix my problem. But Then there is a 500 Error (View not found [name, type, prefix]).
What did i wrong ? Thanks for your help,
Timo
Ps.: Sorry for my english ._.

view.raw.php was missing. Problem solved

Related

Route [people.comments] not defined

help me to find the problem, the laravel project gives error before loading
Route [people.comments] not defined
I copied and pasted the route name, copied and pasted the working routes, but no, it doesn't work.
Route::post('/people/comments', 'Admin\PeopleController#comments')->name('people.comments');
And It worked when I changed method POST to GET
Route::get('/people/comments', 'Admin\PeopleController#comments')->name('people.comments');
I am using this route inside a JAVASCRIPT
let url = '{{ route("people.comments") }}';
Now the question is why it is worked when I changed post to get? and why it is not working in POST ?
(I don't have routes with same name)
THANKS
This was my error two posts with same address and same method
Route::post('/people/comments', 'Admin\PeopleController#comments')->name('people.comments');
Route::post('/people/comments', 'Admin\PeopleController#blogs')->name('people.blogs');

When a particular website is accessed via localhost it shows "Whoops, looks like something went wrong"

I tried to import the source code in my computer and edit a particular website. I add directory link at vhosting script and input this
VirtualHost *:80>
ServerAdmin local.idea.com
DocumentRoot "C:/xampp/htdocs/idea"
ServerName local.idea.com
when I type localhost it shows
--> Whoops, looks like something went wrong.
but, if I input localhost/gjalksgjalk
or localhost/"anycharacter"
the page shows up, but displays error 404,
but other links and pages are working normally.
If I try to open the homepage by clicking button indicated in the image it again display "Whoops, looks like something went wrong."
note: But when I create new project in laravel or other project it works fine.
What seems to be lacking here?
Hope someone can provide ideas to solve this problem. Thanks
Image1 Image 2 Image3
I fixed the issue by changing the code:
From:
$originalWhereCount = count($query->wheres);
To
$originalWhereCount = count((array)$query->wheres);
Another code that also works:
$originalWhereCount = is_null($query->wheres)
? 0 : count($query->wheres);
Everything now works normally in this particular project. Another developer from github said that the original line of code may have an issue with PhP 7.2

response.sendRedirect(url) in Spring MVC controller to external host actually redirects to local host

I ve done some researches but couldn't find any question or answer that could help me,
so my probleme is as below :
I have a controller that redirects to an external link :
#controller("person")
publi class PersonController(){
#RequestMapping(value="redirect",method=RequestMethod.POST)
public String redirectToExternalLink(params...){
String url = "https://externalHost.com/doSomthing";
response.sendRedirect(url);
}
}
after going through this method, I find my self face to a 404 error Page not Found, when I check the link I ve been redrected to I find :
www.mydomainName.com/doSomthing
As you can see, the external domain name is replaced by mine, I ve tried also this :
response.setHeader("Location",url);
response.sendRedirect(url);
same issue.
is it a configuration that I should do on tomcat ? or there is a way to solve it ?
thanks
Your code
response.sendRedirect(url);
is correct. However, I would double check the url redirected to. I would also run the code in debug mode and check if
response.sendRedirect(url);
is executed in the first place.
Please refer to this question, Redirect to an external URL from controller action in Spring MVC.
If you encounter the common problem.
For my case, it was a network configurations issue (URL rewriting).

How to solve Error 404 Not Found in Codeigniter?

My application url : http://localhost/ctsubagent/
My Ajax Code :
...
$.ajax({
url: base_url + 'hotel_booking/hotel/search_hotel',
type: "post",
...
When I click button to run ajax, in consolle exist error like this :
http://localhost/subagent/hotel_booking/hotel/search_hotel 404 Not Found
It appears that it was not calling ctsubagent, but it was calling subagent. This is causing the error.
It seems like there should be set in the config. But I do not know. I've tried it, but have not been successful.
Any help much appreciated
Cheers

CodeIgniter returns 404 for all routes but works

I have strange problem with CodeIgniter and routing system and can't find solution for it, so: I have several routes such as
'forum/(:num)'
=> 'forum/category/$1',
'forum/(:num)/(page:any)'
=> 'forum/category/$1/$2',
and them works, but return 404 code in header.
I mean I don't get 404 page, correct HTML returns and page's content displays correctly for my forum's categories. But I'm getting 404 in header (Network tab in Firebug), so I can't work with POST data correctly.
If I request /forum/ - 200 Ok returns, but when I trying to get routed page, I get right page, but with 404 Not Found.
I'm using PHP5.4+Apache2 on Linux host, if it will help You to give me solution.
I've found solution! Maybe it will save someone's time.
Problem wasn't in CodeIgniter, I've found solution in activation mod_rewrite. Yes, that worked, but wan't activated in Apache.
Just try to do
sudo a2enmod rewrite
and restart apache service after
sudo service apache restart
And all routed pages will return 200 Ok
None of these worked, but I did this instead:
At the end of my controller I put this:
$this->output->set_status_header('200');
and actually though that worked, the problem turned out to be a controller name that conflicted with a real directory name...

Resources