I have a problem with Zend Server (2019.0.4). When I try to access the web-based interface it gives me HTTP 500. The exact error in the php.log file is this:
[07-Jan-2022 18:49:12 UTC] PHP Fatal error: Uncaught ZendServer\Exception: gui directive not found: zend in C:\Program Files (x86)\Zend\ZendServer\gui\module\Application\Module.php:166
Stack trace:
#0 C:\Program Files (x86)\Zend\ZendServer\gui\module\Application\src\Application\Db\AbstractFactoryConnector.php(36): Application\Module::config('zend')
#1 C:\Program Files (x86)\Zend\ZendServer\gui\module\Application\src\Application\Db\AbstractFactoryConnector.php(30): Application\Db\AbstractFactoryConnector->init()
#2 C:\Program Files (x86)\Zend\ZendServer\gui\vendor\zendframework\zend-servicemanager\src\Factory\InvokableFactory.php(30): Application\Db\AbstractFactoryConnector->__construct()
#3 C:\Program Files (x86)\Zend\ZendServer\gui\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(769): Zend\ServiceManager\Factory\InvokableFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'Application\\Db\\...', NULL)
#4 C:\Program Files (x86)\Zend\ZendServer\gui\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(205): Zend\Servi in C:\Program Files (x86)\Zend\ZendServer\gui\vendor\zendframework\zend-servicemanager\src\ServiceManager.php on line 776
The weird part is that I have had a project up and running on a Zend Server already that's been around and working for over a year now, which I've obviously accessed the web-interface for before. I can still run that project locally just fine so I know the server is running but I cannot access the web interface (at http://localhost:10081/ZendServer/) to setup an additional project! Does anyone know what this error is about and how to fix it?
Ok so the answer turned out to be one of my Zend config files was corrupted. That file was the ZendGlobalDirectives file, replacing it with a co-workers copy fixed the issue for me.
Hope this points anyone else having this problem in the right direction
Related
I am getting error
Fatal error: Uncaught Error: Class 'MyClass' not found in /home/x/domain.com/x/x/init.php:3 Stack trace: #0 /home/x/domain.com/x/login.php(6): require_once() #1 {main} thrown in /home/x/domain.com/x/x/init.php on line 3
The thing is, I can run it in XAMPP on localhost without problems, I even ran it on the webserver before. The only thing I did is: deleted DB & files from webserver and 1:1 copied from XAMPP to the webserver and by that moment, I am getting this error.
I have edited things like DB connection etc, there is no error at all ** I THINK ** (since it is running fine in the XAMPP, PHP version is same on webserver as XAMPP (7.3)).
Webserver is running on Namecheap, it is shared hosting, so it is Litespeed server
mainfolder/index.php which is redirecting to login.php (mainfolder/clients/login.php) & login is calling init.php which is in clients/iip/init.php. require_once 'iip/init.php'; (i tried even './iip/init.php') and that 'user' class is located in iip/functions.php called from iip/init.php ( require_once 'functions.php'; )
EDIT: I tried to access init.php at the working XAMPP side and i am getting the same error, BUT site is still working, i am confused
Are you sure you specified your DocumentRoot (in apache config file) correctly?
It seems that your web server can't find specified file or MyClass is not defined in specified file.
You are probably making a mistake specifying the file path. The file path could be like "localhost/functions.php".
Also, after uploading the files to the server, are you sure that you can make the database connection without any problems?
I have a PHP script that reads files from Cloud Storage. It works fine in local dev. But when it's run in App Engine standard environment, it outputs this error message:
Fatal error: Uncaught Google\Cloud\Core\Exception\ServiceException in /srv/vendor/google/cloud/Core/src/RequestWrapper.php:362
Stack trace:
#0 /srv/vendor/google/cloud/Core/src/RequestWrapper.php(206): Google\Cloud\Core\RequestWrapper->convertToGoogleException(Object(GuzzleHttp\Exception\RequestException))
#1 /srv/vendor/google/cloud/Storage/src/Connection/Rest.php(224): Google\Cloud\Core\RequestWrapper->send(Object(GuzzleHttp\Psr7\Request), Array)
#2 /srv/vendor/google/cloud/Storage/src/StorageObject.php(643): Google\Cloud\Storage\Connection\Rest->downloadObject(Array)
#3 /srv/vendor/google/cloud/Storage/src/StorageObject.php(574): Google\Cloud\Storage\StorageObject->downloadAsStream(Array)
#4 /srv/modules/profile/controllers/getresource.class.php(69): Google\Cloud\Storage\StorageObject->downloadAsString()
This doesn't happen to most of the files. The file causing this issue is about 250KB. I am wondering is there some kind of size limitation with downloadAsString()?
One of the files causing this issue is https://www.justjeans.com.au/wcsstore/JustJeansAuroraStorefrontAssetStore/css/main.css?timestamp=2019070295000
The downloadAsString() method downloads the file using stream, and then casts it to a string before returning it.
Link to the SDK code
There should not be any issues with file sizes unless you are running out of memory in your PHP process.
Is there a file that causes the issue every time? If so, maybe adding that to the question would be a good idea.
I want To run a symfony project in my computer but I get all times errors , and now I get this error and i didn't find any solution for my problem
Problem Failed to parse output as xml: Error on line 2: Content is not
allowed in prolog.. Command C:\xampp\php\php.exe
C:\xampp\htdocs\buzzaka\bin\console list --format=xml Output
Fatal error: Uncaught
Symfony\Component\Dotenv\Exception\PathException: Unable to read the
"C:\xampp\htdocs\buzzaka\bin/../.dev.env" environment file. in
C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php:466 Stack
trace:
0 C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php(51): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
1 C:\xampp\htdocs\buzzaka\bin\console(38): Symfony\Component\Dotenv\Dotenv->load('C:\xampp\htdocs...')
2 {main} thrown in C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php on line 466
If u move your file from the folder where it was created symfony will keep looking for it on this folder, i've went on autoload_runtime and changed on $runtime variable where the project is, just worked for me, lets see on the last composer dump what just happens haha
The error is quite explicit, do you have a file C:\xampp\htdocs\buzzaka\bin/../.dev.env ?
Well, you need to create one. As announced a little while ago, Symfony will now require a .env file per environment. As you are running your command in the dev environment, you need to create a .dev.env file.
I'm trying to push a zend application onto an amazon EC2 instance.
I have set up my Zend application on the server and have set up the httpd conf.
When I try to access my website through the browser, I get the following message printed:
bootstrap() ->run();
I have followed all the standard procedures and am able to see static HTML files. But when I try to access PHP files, I see a blank page.
I checked the log files but those do not return any errors.
Any idea why I'm facing this issue.
Update:
I updated my php.ini file with the zend library include_path.
Now I'm faced with the following error:
Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Resource
matching "Jquery" not found' in /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap
/BootstrapAbstract.php:694 Stack trace: #0 /usr/share/php/libzend-framework-php/Zend/Application
/Bootstrap/BootstrapAbstract.php(626):
Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Jquery') #1 /usr/share/php/libzend-
framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php(586):
Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #2 /usr/share/php/libzend-framework-
php/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #3
/var/www/html/urban-chatter/public/index.php(29): Zend_Application->bootstrap() #4 {main} thrown in
/usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php on line 694
Solved:
I copied the zend library from my system onto the server and changed the include_path to the new library in php.ini file and everything started working. I think there was some compatibility issues when I used another version of zend library.
I just installed the Google mirror API. I have everything setup except after I log in to the API, I get this error message:
Notice: A session had already been started - ignoring session_start() in C:\xampp\htdocs\mirror-client.php on line 33
Fatal error: Uncaught exception 'Exception' with message 'Unable to open database: unable to open database file' in C:\xampp\htdocs\util.php:62 Stack trace: #0 C:\xampp\htdocs\util.php(62): SQLite3->__construct('/tmp/database.s...') #1 C:\xampp\htdocs\util.php(26): init_db() #2 C:\xampp\htdocs\oauth2callback.php(41): store_credentials('107736579479351...', '{"access_token"...') #3 {main} thrown in C:\xampp\htdocs\util.php on line 62
It seems that the API can't create the database or do I need to create it?
I tried making a folder and database as it is set up in the config.php file "tmp/database.sqlite" but no luck.
Any ideas?
I figured out that you had to make your own database for it to work.
It can mean that the directory/folder you placed the sqlite file in (and the file itself) does not have the correct permissions. You need to make sure both the folder and the file have read and write permissions. The xampp directory in my environment has read/write permissions. You might want to place your database there, at least for testing purposes.
Note: The /tmp directory as mentioned in "/tmp/database.sqlite" is a Linux/Mac directory. You may want to change the value of $sqlite_database in the config.php file to point to a file in a Windows directory.