I'm putting my website on server but I have some issues to do so.
Indeed, I made it the simpliest way I know, I only copy-paste my files to my server.
I developed my website in php with Slim. It work perfectly locally, but not on the OVH server (mutualised Pro version).
It throw this error :
Fatal error: Uncaught Error: Class
'App\Middleware\ValidationErrorsMiddleware' not found in
/home/username/www/jobs/bootstrap/app.php:154 Stack trace: #0
/home/username/www/jobs/public/index.php(9): require() #1 {main} thrown
in /home/username/www/jobs/bootstrap/app.php on line 154
I'm not sure, but maybe it's because I placed it in a subfolder.
If somebody have a solution :)
Thank you in advance and sorry for the inconvenience, I'm nearly sure that it's due to a stupid mistake I made.
Related
I created a page for tests using easyphp, in easyphp the classes are loaded normally and everything works fine, but when sending the files to the hosting, the classes are no longer recognized for some reason I don't know... does anyone know how to help me?
Page: https://spetests.000webhostapp.com/gerar-qrcode-dinamico.php
Error: Fatal error: Uncaught Error: Class 'App\Pix\Api' not found in /storage/ssd4/870/19749870/public_html/gerar-qrcode-dinamico.php:12 Stack trace: #0 {main} thrown in /storage/ssd4/870/19749870/public_html/gerar-qrcode-dinamico.php on line 12
Files(from tutorial): https://github.com/william-costa/wdev-qrcode-pix-php
Fatal error: Uncaught Error: Call to undefined function wp() in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 Stack trace: #0 /home/customer/www/monkinsider.com/public_html/index.php(17): require() #1 {main} thrown in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php on line 16
I don't know but since last week I am getting this error. My site is hosted on siteground and there are no updates from my side. Also, when I contacted them they said its Wordpress issue and they cant help. I tried to restore backup but only it works for 5 minutes after that error shows up again. Also, I referred to previous articles and everything seems fine the file wp-config and all. Also,I cannot even open my admin Wordpress panel.
That's a malware.
You should scan your server and restore wp-blog-header.php with a default one.
You can download a fresh version here: https://wordpress.org/download/releases/
You won't be able to restore the account until the malware is deleted
I had the same issue. In my case wp-load.php was empty for some reasons, not sure what caused it. I copied the files content from a different website and it fixed the issue.
I have a basic Laravel project, didn't do anything to it, I just did laravel new project. I started Xampp and turned on MYSQL and APACHE, and when I try to access localhost/{path}/project I get this:
Fatal error: Uncaught Error: Class 'Route' not found in
C:\xampp\htdocs\code\project\routes\web.php:18 Stack trace: #0 {main} thrown in
C:\xampp\htdocs\code\project\routes\web.php on line 18
I don't know if this is dumb, but I looked into web.php, and i don't even have 18 lines... it only has 16... Why is this happening, what should I do?
Laravel expects that it is sitting at the root directory of your nginx/apache configuration. If it sits in a subfolder, you need to configure a rewrite to handle the route accordingly. See this link or this link for details on how to appropriately set this up.
I did manage to figure this out. The problem was that i was trying to open the wrong file... I didn't really understand what everything does, but I'm getting there. Anyway, if there is anyone that has the same problem as me, HERE is the YouTube video that helped me. Hope it is useful for someone!
I am making my forum!
I have sql database and everything that I need to publish to the web (domain etc.)
So after launching my forum to the web I am getting the following error when trying to open my forum:
Fatal error: Uncaught Error: Call to undefined function
mysql_connect() in /storage/ssd5/357/5453357/public_html/config.php:14
Stack trace: #0 /storage/ssd5/357/5453357/public_html/main.php(3):
include() #1 {main} thrown in
/storage/ssd5/357/5453357/public_html/config.php on line 14
I tried everything but nothing worked!
Maybe someone from here can answer my question...
How to fix this?
Try mysqli_connect() instead, ‘mysql’ is deprecated. This is the case for every mysql function, so make sure everything is updated to ‘mysqli’. Hope this helps
hi I'm using php/symfony ( symfony 1.0 ) and im getting following exception at the very first page
PHP Fatal error: Class 'sfContext' not found
I tried symfony cc at the root and its working but error is still there ,
may be its due to failure in autoloading files and following line from the code gives me the exception
$customerName = sfContext::getInstance()->getUser()->getAttribute('meta.customerName');
I'm assuming it might be a symfony exception
Sorry for the less information , actually I was installing a web based application and thats all printed in the log , anyhow I managed to find the fault with adding some var_dumps on the flow methods ,
missing php-mysqli extension caused the problem and unfortunately it's not handled from the application level so only a symfony level single line exception printed.
Here is the stack trace :
PHP Fatal error: Uncaught Error: Class 'sfContext' not found in /usr/local/rms/evt/uranai/lib/symfony-1.0.11/util/sfCore.class.php:171\nStack trace:\n#0 [internal function]: sfCore::splAutoload('sfContext')\n#1 /usr/local/rms/evt/uranai/lib/symfony-1.0.11/util/sfCore.class.php(171): spl_autoload_call('sfContext')\n#2 [internal function]: sfCore::splAutoload('sfPhpConfigHand...')\n#3 /usr/local/rms/evt/uranai/cache/pc/prod/config/config_config_handlers.yml.php(7): spl_autoload_call('sfPhpConfigHand...')\n#4 /usr/local/rms/evt/uranai/lib/symfony-1.0.11/config/sfConfigCache.class.php(279): require_once('/usr/local/rms/...')\n#5 /usr/local/rms/evt/uranai/lib/symfony-1.0.11/config/sfConfigCache.class.php(60): sfConfigCache->loadConfigHandlers()\n#6 /usr/local/rms/evt/uranai/lib/symfony-1.0.11/config/sfConfigCache.class.php(190): sfConfigCache->callHandler('config/settings...', Array, '/usr/local/rms/...')\n#7 /usr/local/rms/evt/uranai/lib/symfony-1.0.11/symfony.php(87): sfConfigCache->checkConfig('config/settings...')\n#8 /usr/local/rms/evt in /usr/local/rms/evt/uranai/lib/symfony-1.0.11/util/sfCore.class.php on line 171