Laravel 7 not require file - laravel-7

'''Fatal error: require():Failed opening required 'C:\xampp\htdocs\PHP\Diplomado.PHP\grupo-3-pagina-administrativa-de-laboratorio-cl-nico\vendor\composer/../../app/Mail/MessageContact' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\PHP\Diplomado.PHP\grupo-3-pagina-administrativa-de-laboratorio-cl-nico\vendor\composer\autoload_real.php on line 69'''

Related

Custom Script Extension for Linux - Not able to run ora2pg command

I am new to Azure.
We have created one small POC in which I need to select the VM name and Resource group name in which that VM is present. And then I need to mention the command which I need to execute and then click on execute button which will execute the command.
Now what I have done, I have created one script in linux in which I have given some ora2pg commands. So what is happening when I am trying to run that script directly on VM by passing some parameter, it is working fine without any error.
But same script when I am trying to run through that the POC which I created (by giving VM name, Resource group name and then passing the command which I want to execute) it is giving this error -
Enable succeeded: [stdout] Schema Name : OT Conversation of tables for
OT schema started Conversation of views for OT schema started
Conversation of package for OT schema started Conversation of sequence
for OT schema started Conversation of type for OT schema started
Conversation of trigger for OT schema started Conversation of function
for OT schema started Conversation of procedure for OT schema started
Successfully copied to OT_SCHEMA [stderr] install_driver(Oracle)
failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so'
for module DBD::Oracle: libclntsh.so.18.1: cannot open shared object
file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line
193. at (eval 14) line 3. Compilation failed in require at (eval 14) line 3. Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
Note - My Linux VM is in Azure and it is using Custom script for linux extension to run all the commands. I have moved my script to bin folder so that by passing only the name it will run the script.
I have mention following things in env path in linux -
export ORACLE_HOME=/usr/lib/oracle/18.3/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin:/usr/pgsql-12/bin/
My perl version is 5.26
As I said everything is working fine when I am trying to run from VM, but when I trying to run through my POC it is giving that issue.
Can anyone please help me with the issue like where I am lagging?!
Thanks in advance.

Setting up AppRTC (WebRTC) on Google App Engine

I am not able to setup WebRTC on Google App Engine. Here are the steps that I performed to deploy the webrtc app on my Google App Engine Project.
Clone https://github.com/webrtc/apprtc on my local system.
Copied app.yaml from apprtc/src/app_engine/ to root folder of the local repository
Edited app.yaml [Set "application" to my appid "ckwebrtc" on Google App Engine]
npm install
grunt build
appcfg.py --oauth2 update
But I am getting "500 Server Error - The server encountered an error and could not complete your request".
URL - https://ckwebrtc.appspot.com/
Kindly help
Update: This is the error that I am getting:
2015-04-16 22:34:26 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--oauth2', 'update', u'C:\\xampp\\htdocs\\heroku\\ckwebrtc']"
10:34 PM Application: ckwebrtc; version: 2
10:34 PM Host: appengine.google.com
10:34 PM Starting update of app: ckwebrtc, version: 2
10:34 PM Getting current resource limits.
10:34 PM Scanning files on local disk.
10:34 PM Scanned 500 files.
10:35 PM Scanned 1000 files.
10:35 PM Scanned 1500 files.
10:35 PM Scanned 2000 files.
2015-04-16 22:36:05,130 ERROR appcfg.py:1925 Invalid character in filename: node_modules/grunt-htmlhint/node_modules/htmlhint/node_modules/jshint/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped
10:36 PM Scanned 2500 files.
10:36 PM Scanned 3000 files.
10:36 PM Scanned 3500 files.
10:36 PM Scanned 4000 files.
10:36 PM Scanned 4500 files.
10:36 PM Scanned 5000 files.
10:36 PM Scanned 5500 files.
2015-04-16 22:36:55,687 ERROR appcfg.py:2454 An error occurred processing file '': [Error 3] The system cannot find the path specified: 'C:\\xampp\\htdocs\\heroku\\ckwebrtc\\node_modules/grunt-closurecompiler/node_modules/closurecompiler/node_modules/tar/node_modules/fstream/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/*.*'. Aborting.
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\appcfg.py", line 133, in <module>
run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\appcfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5468, in <module>
main(sys.argv)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5459, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3019, in Run
self.action(self)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5115, in __call__
return method()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3853, in Update
self._UpdateWithParsedAppYaml(appyaml, self.basepath)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3906, in _UpdateWithParsedAppYaml
self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3791, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2445, in DoUpload
self._AddFilesThatAreSmallEnough(paths, openfunc)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2537, in _AddFilesThatAreSmallEnough
for path in paths:
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2680, in FileIterator
entries = set(os.listdir(os.path.join(base, current_dir)))
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\xampp\\htdocs\\heroku\\ckwebrtc\\node_modules/grunt-closurecompiler/node_modules/closurecompiler/node_modules/tar/node_modules/fstream/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/*.*'
2015-04-16 22:36:55 (Process exited with code 1)
You can close this window now.
I am not sure if this was a windows problem or not.
I tried again from koding.com (Online Cloud) and was successful in setting up the app.
Here's how I did it.
$ git clone https://github.com/webrtc/apprtc.git
Edit app.yaml, package.json, mainfest.json etc with your application ID.
$ sudo npm install grunt-cli
$ sudo npm install
$ sudo grunt build
$ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc update ./out/app_engine/
If you get an error asking for rollback then execute the following command:
$ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc rollback ./out/app_engine/
$ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc update ./out/app_engine/
Each of the command mentioned here should be executed from the root of your application folder. (i.e. the folder where your application is cloned)

Fatal error: require_once(): Failed opening required 'pre.php' in /usr/share/tuleap/src/www/index.php

I have installed xampp and then tuleap in centos and gave /usr/share/tuleap/src/www as document root in /etc/httpd/conf/httpd.conf
When I hit the url, I am getting the following error:
Warning: require_once(pre.php): failed to open stream: No such file or directory in /usr/share/tuleap/src/www/index.php on line 9
Fatal error: require_once(): Failed opening required 'pre.php' (include_path='.:/opt/lampp/lib/php') in /usr/share/tuleap/src/www/index.php on line 9
I am also seeing that the document root points to /usr/share/tuleap/src/www and pre.php is not in this folder. Instead it is at include/pre.php I am totally confused on this directory structure. I didn't change any code after installing tuleap.
Please let me know how to fix this issue.
Thanks in advance!

Apache 2 error after performing Update on Ubuntu Server

root#ubuntu:-$ apachectl restart
Gives me this error:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax
error on line 1 of /etc/apache2/mods-enabled/perl.load: Cannot load
/usr/lib/apache2/modu les/mod_perl.so into server:
/usr/lib/apache2/modules/mod_perl.so: cannot open s
hared object file: No such file or directory Action 'restart' failed.
The Apache error log may have more information.
IN line 140 of apache2.conf there is this:
Include mods-enabled/.load*
Include mods-enabled/.conf*
In the file perl.load there is only one line:
LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
Kindly assist me on how I can rectify this as it was working properly until apache did and update and it wont restart now.

Hello world failing

I've just installed python 3.2.1 (32-bit) and cherrypy 3.2.1 (CherryPy-3.2.1.win32-py3.exe) on my Windows 7 box and have tried the hello world example (executed via PyScripter) but it hangs after the Engine bus STARTED message.
If I try to start it via the python.exe, I get the following log:
C:\Program Files (x86)\Python32>python hello.py
[24/Jul/2011:16:24:03] ENGINE Listening for SIGTERM.
[24/Jul/2011:16:24:03] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.
[24/Jul/2011:16:24:03] ENGINE Started monitor thread 'Autoreloader'.
[24/Jul/2011:16:24:03] ENGINE Started monitor thread '_TimeoutMonitor'.
[24/Jul/2011:16:24:03] ENGINE Serving on 127.0.0.1:8080
[24/Jul/2011:16:24:03] ENGINE Bus STARTED
Exception in thread CP Server Thread-4:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 693, in read_request_headers
read_headers(self.rfile, self.inheaders)
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 202, in read_headers
raise ValueError("Illegal end of headers.")
ValueError: Illegal end of headers.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 1024, in communicate
req.parse_request()
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 578, in parse_request
success = self.read_request_headers()
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 696, in read_request_headers
self.simple_response("400 Bad Request", ex.args[0])
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 840, in simple_response
status = str(status)
TypeError: 'tuple' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python32\lib\threading.py", line 736, in _bootstr
ap_inner
self.run()
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 1174, in run
conn.communicate()
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 1080, in communicate
req.simple_response("500 Internal Server Error", format_exc())
File "C:\Program Files (x86)\Python32\lib\site-packages\cherrypy\wsgiserver\ws
giserver3.py", line 840, in simple_response
status = str(status)
TypeError: 'tuple' object is not callable
What am I missing?
Code:
import cherrypy
class HelloWorld:
def index(self):
return "Hello world"
index.exposed = True
cherrypy.quickstart(HelloWorld())
EDIT: Bonus-info: I've tried various things to remedy the situation with no result. Installing the 64-bit version of python didn't help as cherrypy doesn't support 64-bit (unless, I'm mistaken). I've tried re-installing both python and the cherrypy packages, and I've tried deactivating all other things that might block it (IIS). All to no avail :-(
EDIT2: Second bonus - everything works if I install it with python 2.7.2, so seems it is only a problem with 3.x (I've tried 3.0.1 as well - same problem)
I have encountered two errors:
1 - open your browser before starting the script, so you'll not have any problem.
2 - if you use a personal firewall or an antivirus that handles HTTP protection, be sure he is not protecting the 8080 port, for example ESET Antivirus will not let you use the 8080 and CherryPy will say that the port is not free.

Resources