500 not valid database - joomla

I'm using Joomfish component then it give error "500 not valid database" For my Component.
When I changed my database MySQL to mysqli then it's working fine.
Why?

Unless you are running PHP 5.3, the mysqli extension is not installed by default. You probably haven't installed it, or it isn't configures properly.
Please check the phpinfo() function to see if it is installed and read about setting up mysqli to see how to install and/or configure it.

Related

Api-Platform "No operations defined in spec!" in Symfony 5.1 dev system

I am using Symfony 5.1.8 in an existing project and installed Api Platform, version 2.5.7:
composer req api
I added an #ApiResource() Annotation to one of my entity classes.
When calling the /api/ route there is always just a message saying "No operations defined in spec!". The problem does only occur on my dev system (php 4.7.11, macOS Catalina 10.15.6, xdebug... ). So I do not think it's a configuration problem...
When I deploy this to my testsystem (debian with docker containers) everything works as expected - there are shown 6 resources I can interact with.
I tried to update my composer dependencies, clear the cache several times, clear the cache folder... nothing of this helped.
When calling
bin/console debug:router
on my test system, I get all 6 resources. In my dev system there are no routes shown.
Do you have any ideas where to start debugging to better understand the problem?
What are further interesting details?
Edit:
It works in the dev system when changing the environment to "test". But I do still not have a clue, why...
regards
Stephan
I found the answer.
I am using redis for system cache, so the deletion of the cache folder (./var/cache) didn't help.
A normal cache:clear didn't help, too:
bin/console cache:clear
But a cache clear of the system cache did the trick:
bin/console cache:pool:clear cache.system_clearer

Getting an error when running Laravel for the first time

Im running a new Laravel project and getting this error ,"You're using the default database name laravel. This database does not exist. Edit the .env file and use the correct database name in the DB_DATABASE key.", But what's confusing is, its not the first time running a Laravel project,but I have never encountered such. Anyone to help?. Thanks in advance.
I had to reset the configuration in my PhpStorm, it was calling for PHP 7.4 yet my installed version was 7.2. Thanks to those who responded, I appreciate.
There are two options;
If you are using Homestead then you need to configure your database connection as thus;
DB_DATABASE=name_of_database
DB_USERNAME=homestead
DB_PASSWORD=secret
If your environment is out of Homestead, then use the credentials you use when logging in to localhost/phpmyadmin
I hope it helps.

Can't connect google cloud cassandra nodes from laravel

I am trying to connect to my google cloud vm-cassandra instance from my computer (using laravel framework).
I use this guide https://github.com/cubettech/lacassa to configure connection, but It says Class 'Cassandra' not found. Here is an image:
https://imgur.com/a/12GFR
In Connection.php it includes Cassandra class "use Cassandra";
I have no idea what I am doing wrong. Can someone help me?
You need to make sure that datastax/php-driver is installed. Check out the installation instructions especially the part where you need to install the PECL extension

PDO not available

I'm not a php developer, just started learning and migrating my php web site to code igniter. Previously I tried to deploy code on my production web site (paid hosting), and a class with PDO reference didn't work, so I backed out form that. My hosting company told me to change my plan to a more expensive plan. I don't want to do that but still I want to use PDO based code;
(From my CPanel I can see "PHP Version 5.2.17", however PDO doesn't work... I thought PDO was bundled with PHP 5...)
anyway
- Is this something that can be added to code igniter even if environment doesn't provide? as a library..etc?
- Or is it commonly available/provided if I change my hosting company to a free hosting company?
Thanks for your advises.
PDO is built into CodeIgniter(system/database/drivers/pdo/); however, if your host does not support it, then it cannot be used.
As for free hosting that provides, PDO, you'll have to do your research on that one.

how to configure Magento in my local xampp

Now i want to install magento, I downloaded the files from magentocommerce.com and extract it and run the installation file. In the second step once i entered the DBhost,Dbusername and DBpassword and navigate my installation to the next step it throws an error "*o Database server does not support the InnoDB storage engine.o Database connection error." Can anyone please guide me to install magento in my local.
Regards,
Arun
Meanwhile, there are some tutorials available on how to install Magento under Windows using the XAMPP stack, e.g. the one in the Magento Wiki.
Note that even though mySQL supports InnoDB since mySQL 3.23.34a, you'll need to install at least mySQL 4.1.20 for current Magento versions (see Magento System Requirements for more detailed infos).

Resources