I'm using Doophp framework and its working perfectly on localhost and xampp but I get filemtime(): stat failed for view_filename.html on web host. Is that a host-side error or framework bug?
what do you recommend for this error.
here is full stack trace
Related
Octane is installed with roadrunner while following the official guide, on the Ubuntu 18.04 server. Each step works as expected until the server is started:
php artisan octane:start --server=roadrunner --port=8181
Then, an error is received and the command exits. The complete stacktrace is attached:
INFO Server running…
Local: http://127.0.0.1:8181
Press Ctrl+C to stop the server
INFO [INFO] RoadRunner server started; version: 2.6.3, buildtime: 2021-12-03T11:37:00+0000
PHP Warning: require(/path/vendor/bin/bootstrap.php): Failed to open stream: No such file or directory in /path/vendor/bin/roadrunner-worker on line 18
PHP Fatal error: Uncaught Error: Failed opening required '/path/vendor/bin/bootstrap.php' (include_path='.:/usr/share/php') in /path/vendor/bin/roadrunner-worker:18
Stack trace:
#0 {main}
thrown in /path/vendor/bin/roadrunner-worker on line 18
INFO error occurred: WorkerAllocate:
INFO goridge_frame_receive: EOF, plugin: http.Plugin
ERROR 2021-12-07T12:01:53.048Z ERROR container/poller.go:16 vertex got an error {"id": "http.Plugin", "error": "WorkerAllocate:\n\tgoridge_frame_receive: EOF"}
ERROR github.com/spiral/endure/pkg/container.(*Endure).poll.func1
ERROR github.com/spiral/endure#v1.0.10/pkg/container/poller.go:16
ERROR handle_serve_command: WorkerAllocate:
ERROR goridge_frame_receive: EOF
Since roadrunner is based on go, I don't have much insights on how to navigate through the error. Please let me know if anyone has solved this issue before, thanks.
You should fix all warnings like this one: PHP Warning: require(/path/vendor/bin/bootstrap.php): Failed to open stream: No such file or directory in /path/vendor/bin/roadrunner-worker on line 18
These warnings appear in the stdout, but stdout is used as a process fd to communicate with the RR. That means if some data is sent to the stdout (like PHP warning) before RR initializes all processes (aka worker), RR will stop allocating the workers and exit with code 1.
While using AMPHP libraries for thread working tasks, I suddenly got the Warning and Error:
PHP Warning: include(/.../vendor/amphp/process/lib/ProcessException.php): failed to open stream: Too many open files in /.../vendor/composer/ClassLoader.php on line 445
PHP Fatal error: Uncaught Error: Class 'Amp\Failure' not found
This was previously working fine, and started to get the issue recently.
Using:
PHP 7.4.21 (cli)
macOS
"amphp/parallel-functions": "^1.0"
According to a thread on AMPHP GitHub issue page: https://github.com/amphp/parallel-functions/issues/22
On macOS, the ulimit is by default 1024.
In my case, upgrading that to ulimit -n 4096 as suggested, worked fine.
According to IBM docs: "ulimit sets or displays the resource limits on processes created by the user." More info.
So i'm new in zendframework and i want to try zf version 1 , i cannot find a good documentation for this. i'm having an error when i try to run the downloaded file in xampp
here's the screen shot of my folder structure
I install zend framework using composer zendframework/zenframework
then here's the error
Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in D:\xampp\htdocs\Zend\public\index.php on line 17
Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='D:\xampp\htdocs\Zend\library;D:\xampp\php\PEAR') in D:\xampp\htdocs\Zend\public\index.php on line 17
you should read and understand step-by-step from here :
https://framework.zend.com/manual/1.11/en/learning.quickstart.create-project.html
Or,
https://framework.zend.com/manual/1.12/en/learning.quickstart.html
first try to understand the application structure.
As you are new in Zend framework, I think this is the best place to start.
I'm new to Propel. A friend of mine had experience with it and recommended it to me but I cannot get it to generate for some reason. I already have a project generated with Propel. I'm trying to generate this project again to check if my installation is correct.
The error I'm encountering is:
[PHP Error] require_once(/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php): failed to open stream: No such file or directory [line 12 of /usr/share/php/data/propel_generator/lib/task/AbstractPropelTask.php]
PHP Fatal error: require_once(): Failed opening required '/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php' (include_path='/usr/share/php/data/propel_generator/lib:/home/casper/Desktop/*/vendor/propel/propel1:/usr/share/php/../classes:.:/usr/share/php:/usr/share/pear') in /usr/share/php/data/propel_generator/lib/task/AbstractPropelTask.php on line 12
(folder contains domain of the website, replaced with *)
I suppose the error is it is trying to include:
/usr/share/php/data/propel_generator/lib/task/../../stubs/functions.php
While it should be trying to include:
/home/casper/Desktop/*/vendor/propel/propel1/runtime/stubs/functions.php
Any help would be greatly appreciated.
(Full result of propel-gen: http://pastebin.com/raw.php?i=hzp4caws)
*I am running Ubuntu 14.10
I'm trying to learn zend framework 2 with this phpunit added, but I cannot get it work. I've followed the steps in the official zf2 tutorial (http://framework.zend.com/manual/2.0/en/user-guide/unit-testing.html) and now I'm facing some kind of error message clueless
Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;\php\zend_framework\library;\php\pear\PEAR') in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
PS C:\xampp\htdocs\new103\module\Application\test>
Needed to change the php.ini include_path to list of absolute paths, phpunit can be ran now.