Class 'BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider' not found - php

I am developing a website on Laravel (both frontend and backend).
I installed the baklysystems/laravel-chat-messenger extension on my laptop project files, following every single installation step and it works fine. The chat works very well, I just made some style changes. However, when uploaded the files to GoDaddy hosting, I got the following error:
Class 'BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider' not found
(1/1)Error
Class 'BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider' not found
in ProviderRepository.php line 208
Do any of you have any idea why is this happening?
Protip: I just uploaded the new files and made the modifications on the files that already where there, like for example including in providers in my config/app.php the line:
BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider::class,
Thanks in advance

Related

I try to add wordpress blog to existing PHP Laravel project

I have a PHP Laravel project hosted on Heroku with a Postgresql database and I want to add a Wordpress blog to /blog.
I added in the public folder a blog folder and then copied the last version of WordPress there.
After that, I followed, starting with step 6, this tutorial: http://www.merocode.com/hosting-wordpress-blog-on-heroku-with-support-of-postgres/. I also replaced the wp_config variables with the ones provided on Heroku.
After deploying it to Heroku and trying to test my_site.herokuapp.com/blog I get:
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /app/public/blog/wp-content/pg4wp/core.php(32) : eval()'d code on line 1612
Connecting to your PostgreSQL database without a password is considered insecure.
If you want to do it anyway, please set "PG4WP_INSECURE" to true in your "db.php" file.
Can anyone help me with this problem? Do you know another good tutorial with all the steps that can help me host a WordPress blog to an existing PHP Laravel project?
Thank you!
Laravel and Wordpress should be separated!
This error is not related to Laravel. Check your Wordpress files and versions or your webserver config.
Correct solution:
Create a new config in your webserver and define new routes for /blog and separate your project folders.

Undefined variable notice when trying to use Spotify API PHP Wrapper

I hope you are well. I am brand new to coding and have spent a lot of time trying to find a solution to my question, without much luck.
I was trying to utilize Spotify's API with PHP but ran into thus far unsurmountable hurdles. Please see steps taken below:
1.) I downloaded the Spotify PHP Wrapper library here https://github.com/jwilsson/spotify-web-api-php, and saved it in the same directory as my app. I then created a composer.json file as below :
{
"require": {
"jwilsson/spotify-web-api-php": "^1.0.0"
}
}
2.) After creating and saving the composer.json file, I ran "composer install" in terminal in the same directory as where the composer.json file was stored, which led to the creation of a composer.lock file and a vendor folder.
3.) I then moved the composer.lock, composer.json and vendor folders to my online hosting service (ecowebhosting) via firebug, so that I can run and test the code. I also created a .php file that I moved to the server as well.
In my .php page, i declared the required files as such (below) and ran a sample query form the Spotify API PHP Wrapper documentation on github, to confirm whether or not I successfully loaded the library (the autoload.php folder was automatically created in the "Vendor" folder, after I performed step 2 above):
require 'vendor/autoload.php';
$tracks = $api->getAlbumTracks('1oR3KrPIp4CbagPa3PhtPp');
print_r ($tracks);
When I run the code above, I get the error below:
Notice: Undefined variable: api in /home/sites/amanka.com/public_html/content/SmallApps/ListeningPod/home.php on line 8 Fatal error: Call to a member function getAlbumTracks() on a non-object in /home/sites/amanka.com/public_html/content/SmallApps/ListeningPod/home.php on line 8
This error causes me to think that I have not installed the Library correctly. Please any ideas where I might be going wrong?
Thanks a lot

Issues installing Symfony 2.8 on a Linux

I have spend weeks trying to install Symfony on Linux...
I create a new project (Applications) .... And I wasn't able to access it with my browser.
I created a new folder, cut-paste all the files in it and deletted the folder create by Symfony. I was able to access it with my browser (using srv-web-03/Applications/).
If I try srv-web-03/Applications/web, I can see all the file and folders in it.
If I try srv-web-03/Applications/web/something, I have a 404 error.
If I try srv-web-03/Applications/web/app.php/something, I have a blank page.
I editted the file app.php to be like app_dev.php : no change.
When I look at my apache log files I have this error :
"PHP Fatal error: Class 'Symfony\Component\Debug\Debug' not found in /var/www/html/Applications/web/app.php on line 14"
I try that http://symfony.com/doc/2.8/book/installation.html#book-installation-permissions, but the result is the same.
last thing : I'm... Let say I'm a dumbass with Linux... It doesn't help.
thank you in advance

YumUserController not found Yii

hi i am running someone Else's code based on Yii.I tried to run it but i found the error.
Fatal error: Class 'YumUserController' not found in C:\wamp\www\msl\framework\YiiBase.php on line 204And also it displays html/php content,can any one please suggest me what the actual issue occurring.I have installed yii in my /www/yii/, and in yii folder i put my framework along with the project file in www/yii/framework,and my project

Error on Zend controller creation

I'm attempting to build a test project with the Zend framework and using MAMP to run it on my local host.
The project creation works fine; I navigate to my htdocs directory and use zf create project my_zend to create the scaffold.
My error comes when I try to create a controller "students" by using the following command zf create controller students, however, once this command runs it outputs the following error:
Context by name servicesDirectory does not exist in the registry.
Where does this error come from?
I had the same problem, here is how I fixed it, check for the line:
<servicesDirectory enabled="false"/>
In the .zfproject.xml file and remove it.
You might get this error if you have another version of zend some where in the path. If you have one try deleting it and using the latest or the version you wish to. This worked for me in xamp on windows 7 hope it works for you

Categories