Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jasperphp run in terminal but not in browser #62

Closed
freebornforever opened this issue Sep 15, 2017 · 9 comments
Closed

jasperphp run in terminal but not in browser #62

freebornforever opened this issue Sep 15, 2017 · 9 comments

Comments

@freebornforever
Copy link

I've created a test file and try to run but unfortunately it didn't work, here is the error message

Fatal error: Uncaught JasperPHP\Exception\ErrorCommandExecutable: Your report has an error and couldn 't be processed!\ Try to output the command using the function output(); and run it manually in the console. in /var/www/html/vendor/geekcom/phpjasper/src/JasperPHP.php:198 Stack trace: #0 /var/www/html/test.php(14): JasperPHP\JasperPHP->execute() #1 {main} thrown in /var/www/html/vendor/geekcom/phpjasper/src/JasperPHP.php on line 198

When I ran in terminal, it's OK, I've searched Internet and most answer is write permission problem,
so I ran bash script as following

sudo chmod 777 -R /var/www/html

so I'm sure that the folder is writable but wonder why it was unable to run in browser.

Please let me know how to solve.

Thanks in advance

@freebornforever
Copy link
Author

I edited source code to show error number and it was ERROR 127.

@freebornforever
Copy link
Author

PROBLEM SOLVED!

I have installed JDK in home directory therefore jasperstarter had no permission to run JAVA.
That's why I's able to run in terminal but not browser because browser using www-data
which no permission in my home directory.

@yientau
Copy link

yientau commented Nov 9, 2017

I am getting the same error. I am using XAMPP on Mac. Can you elaborate about the permission issue and how did you fix it? I can run the command successfully from terminal, but not able to run it on browser too. How do I give permission to the daemon? and I doubt my issue has to do with Java permission.

@adummy832
Copy link

@freebornforever , Dude how did you resolve this issue? Been facing the same on my linux machine.

@adummy832
Copy link

@yientau, 2years have already been passed did u resolve this issue bro? Been facing the same. 😫

@freebornforever
Copy link
Author

@yientau, 2years have already been passed did u resolve this issue bro? Been facing the same.

Did you read my prior post before asking?
I have posted clearly how to solve the problem, if you still do not understand read it again and again.

@wiltonbarros
Copy link

@freebornforever, i have the same error. How you resolved this?

@wiltonbarros
Copy link

@adummy832 did you have resolve this?

@jer0256
Copy link

jer0256 commented Apr 19, 2021

@wiltonbarros hi did you resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants