In codeigniter view page the data is not displaying from database - codeigniter

I am not getting the result in view page but its displaying while i am printing in controller. Its working perfect in my local but its not working in server. Please help me to get solution for this.

Please check your code in view page properly, As my experience any loop or condition is not closed in your code.
In localhost error is showing but code is execute after that error but on server code is not execute after error in code

Related

Laravel vapor returns message:null when click on browser back button

I recently started using Laravel vapor as my server and I've realized that when I click on the browser back (history) button, I get this weird message:
Image of the returned message
Did anyone have this issue?
I have no idea which part of the code to share with you that would be relevant for this issue since I didn't find any similar problem on the internet.
If you need something, comment and I will edit the question.
This is most likely due to you having a route with the same path for displaying and getting JSON data. The browser may cache the JSON version and show that when hitting the back button.
If you could share the relevant routes that match, I can go into more detail.

Ajax response getting php tag as prefix in laravel

I am working on an issue which is in existing project.The project is build in laravel (version 5.8).The issue is that when any web pages is loaded of web application then first line of code will be commented.And there is one more issue is that when any form is submitted through ajax then in response always i got "<? (PHP tag)" as prefix.So i am not identifying how it is coming.
I have tried one solution that removing the PHP tag from the empty routes file but still issue is not been fixed.Below is the link of it from where i got the way of solving the issue but it is not working :
https://github.com/laravel/framework/issues/21581
Below is the image of the commented code and the response of ajax which i am getting all the time.
1) First line of code will be commented all the time when any of the page is loaded.
2) When any of the ajax call of the application then in response i got "<? (PHP tag)" as prefix.
Please provide me solution as soon as possible because i am trying to resolve the issue since a week but still issue is not fixed.Thanks in advance.

How to download the birt report directly instead of view in the viewer?

my report is up and running in my local tomcat server with this url
http://localhost:8080/WebViewerExample/frameset?__report=course_report.rptdesign
so in my report there is one parameter called "course" so in the browser asking for the parameter and displaying the report as per my reports design it's working fine.
But my requirement is instead of view the report in the birt viewer it should be download.
so i am trying to change the url like this
http://localhost:8080/WebViewerExample/download?__report=course_report.rptdesign&course="MCA"
means in the place of "frameset" i am writting "download" and passing the parameter "&course="MCA".
it's giving an error
org.eclipse.birt.report.service.api.ReportServiceException: /home/arjunkumarm/tomcat7/webapps/WebViewerExample/documents/BIRTDOC1D8E2827AF9E44F93971829D80BB680C/20150702_181043_534/course_report.rptdocument doesn't exist or is not a folder.
any one can help me what is the error. and what is the solution for that.
Thanks in advance....
Try /executereport.do?__executableName=/MyReport.rptdesign&invokesubmit=true&__format=pdf. You could also do it with JavaScript on a web page or their REST API.
For additional discussion check out http://developer.actuate.com/community/forum/index.php?/topic/23052-using-actuateviewerdownloadreport/

Recieving an AJAX CALL ERROR upon page load

Bear with me as this is my first question here. I will try to format it as best I can.
I have installed a contact form plugin to my wordpress site and after setting everything up, I am now getting an error when I load the page that states this:
AJAX CALL ERROR
Error: 0 error
Verify the attribute action of the form. It seems there is an error
I spoke with the developer and he is able to load it on his demo site, I ran the site in debug mode, and looked at the .htaccess information. He is telling me that there must be something wrong with the server configuration since it only shows on the front end. I don't see anything in the htaccess file which would cause this. I am not very familiar with Ajax or htaccess(a little but not much) so That is why I'm asking this here. Does anyone have a suggestion, because I'm at a loss right now. Thanks
Open up Chrome, go to "Tools" then "Developer Tools", then click on the "Network" tab, try to load the page and monitor the AJAX calls the form is making. You can click on them and look at the request and response headers and the content returned by all the AJAX calls. Find the one that is broken. Start your debugging there.
If the server is returning some sort of error, like a 500 error, then look at the contents of the page being returned, there may be a better error message there. If it's a 404 error, then you're form is trying to make an AJAX call to something the server can't find.

Html5 pushstate internal service error when page refresh, or view source code

i am attempting to copy a tutorial example found here http://html5.gingerhost.com/ but whenever i try to refresh the page it takes me to a "500 Internal Server Error". also when i click the link and the page loads the other content, when i look at the source code it only shows my another "500 Internal Server Error"
please help!
thanks alot!
This is because the server needs to be able to understand the URLs too. So for example, you're page is at http://example.com. You use a link's click event to make it http://example.com/more-info. But if http://example.com/more-info doesn't exist on the server, refreshing the page won't work properly because the browser won't know that /more-info is actually part of the index page. So pushstate only works if the client and the server both recognise the new URLs.

Resources