There is a problem that I can't resolve. I am developing a project and test on my computer which runs as expected. But when I move the project to testing server, which also has Zend Server CE, it gives blank page. Display errors function is ON and I put try catch at the very begining, but it still shows a blank page. When ever I write "exit;" command at the end of related view script, page works normally!
What can couse this problem ?
Thanks
My first guess would be a problem with your include path. That's a very common issue when deploying from one server to another.
But clearly it's some kind of fatal error. I haven't used Zend Server, but in Apache I'd look in the error_log, since any fatal error output ends up there. Does Zend Server have something similar?
...aha, Zend Server seems to have a log, accessed through Monitor > Logs in the admin interface. Try looking in the PHP Error Log for reports of fatal errors.
Related
I got the following error message right after login in in backend
what could be the problem in this case?
default behaviour on errors in the BE:
try the install tool and check for errors.
Errors in configuration where the install tool has checked your installation.
and your apache log to see the exact error. (You see an processed error message).
the error message gives a hint what to look for: /main
where have you used it? and does that folder/file exist?
maybe a misunderstanding as you might assume the folder based in web root (something like /srv/web/html/) but from the name it is based in disk root (/)
have you used it in a configuration (e.g. LocalConfiguration.php)?
or in a file-storage record?
Good morning guys,
I just built a CentOS server with php 7.0.13 and apache 2.2 and the strangest thing is happening when testing it.
I had a curl script that works perfectly well through the command line but not when invoked through the browser, after investigating a bit, I realized that I can also not write to files if I do it through the browser, but I have no problem whatsoever doing it through the command line.
I assumed that the problem would be on two different php.ini files, but after verifying the phpinfo I realized that both the CL and the browser are loading the same, and all extensions seem to be loading correctly as well, by using get_current_user() I can also verify that the same user is executing both. I would assume the problem would be in apache, but I have no clue as to what could be causing it.
Can someone point out to possible avenues to solve the issue? I have no idea what to do from this point onwards.
As Hassan indicated the problem was with the user executing the script.
I commited an error thinking get_current_user() indicates the user executing the script, it does not, it indicates the file owner.
If you have a similar problem and need to figure who is executing the script use exec('whoami'); instead.
EDIT:Ok although that was one of the errors, the main error was on the fact that SELinux was activated, as soon as I deactivated the scripts started working perfectly.
I've created an Zend Application on a local machine, with Zend Server Installed on it.
However I am now looking to migrate it to a live host - Shared hosting with Parallel Plesk 8.4.0
I've moved everything up and at one point I was just getting a blank screen when loading the public folder.
I tweaked the public/index.php file to include Error_Reporting(E_ALL|E_STRICT)
So I am now getting an error from the script. The error I am getting is...
Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Error parsing /var/www/vhosts/eekonomics.co.uk/httpdocs/application/configs/application.ini on line 4
Theres more to the error. But alot of it seems irrelevant, If required I can post the rest.
Has anyone any ideas how I can get this setup and working, Its slowing me down big style :-(
Any help appreciated...
Changing the application.ini file from APPLICATION_PATH to the absolute path of the files seems to have fixed this.
I've got another error associated with PDO Adapter not being installed, but that is down to a server install issue rather than Zend / PHP.
I was following quickstart tutorial. My servername is "quickstart.local" which works fine but when i click guestbook then the link "quickstart.local/guestbook" doesn't work and message "An error occurred Application error" is displayed.
Any idea? Tried to find answers hard but to no avail.
Thanks for any help
Make sure that resources.frontController.params.displayExceptions = 1 (in your config) if you don't have logging enabled and you should see the exception details. You could always modify the ErrorHandler (default: application/controllers/ErrorController.php) so that you get the error details emailed to you, etc.
If you are using Zend Studio / Eclipse, then you could try using the debugger if available.
I would guess the .htaccess file is misconfigurated or the Apache won't handle the .htaccess the way it should. Does http://quickstart.local/index.php/guestbook work? In case yes: mod_rewrite module on your server does not work correctly.
I'm having a strange problem with Zend. I have an application that works great on localhost, and can access it from outside using my IP address as well. When I move it to our staging server, it fails to load any of the classes. I am using autoloading with a modular structure. All the models are in the Default module, then the models folder. Static pages work fine, but anything that tries to access a model fails with "Fatal error: Class 'Default_Model_ModelName' not found in (Controller Path & Name)". I have checked the server and all files are there and are exactly as they were on localhost. Does anyone have any ideas on how to resolve this issue or what may be happening? I've looked into everything I can think of and can't see any problems anywhere. Thanks in advance!
Some items to check:
Did the .htaccess file get moved? This is really easy to overlook.
Is the Zend Framework version different?