How to show * in input field of strapi version 3 - strapi

How to show * in input field of strapi version 3
it's same this picture
And I can't upgrade version 3 to 4 because it's error: Unknown dialect undefined when i yarn dev

Related

Why I got duplicate key error collection: sessions index error with jenssegers/mongodb?

I started new laravel 9 (with jet and inertia, without team) app with "jenssegers/mongodb": "^3.9" installed.
I changed connection to mongo MngProducts database and run migrations.
But running homepage with controller defined I got error on second request :
E11000 duplicate key error collection: MngProducts.sessions index: id_1 dup key: { id: "loBh99XTp9cm3Qj17YqKhVFTuxM8bvpd14wczWQa" }
In Compass I see 1 row in sessions : https://prnt.sc/irFNeSAU-zN4
I migrated all default 4 laravel tables(without any data in them) and why I have this error and how that can be fixed?
Thanks!
Setting in .env file :
SESSION_DRIVER=file
fixed this issue.

Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id)

I have a Laravel 9 project
I am trying to deploy the project to Vercel
But every time I deploy it I get the following message
Fatal error: Declaration of Illuminate\Container\Container::get(string $id) must be compatible with Psr\Container\ContainerInterface::get($id) in /var/task/user/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 702
I tried following the solution here
But it didn't work since some dependencies in Laravel 9 needs psr/container >= 1.1.1

Connecting a db2 database from a centos hosted laravel application

I'm trying to connect to a db2 database server (iseries ibm) from my laravel application (5.8). The application is running on a centos linux server.
I saw that db2 isn't in the 4 databases types listed here : https://laravel.com/docs/5.8/database#introduction.
So I tried to use that package https://github.com/cooperl22/laravel-db2 but I got the followings errors :
Undefined class constant 'I5_ATTR_DBC_SYS_NAMING'
And I've got the errors for 5 constants :
PDO::I5_ATTR_DBC_SYS_NAMING, PDO::I5_ATTR_COMMIT, PDO::I5_ATTR_JOB_SORT, PDO::I5_ATTR_DBC_LIBL, PDO::I5_ATTR_DBC_CURLIB.
Also, if I comment theses constants, I got this error :
`Syntax error: -104 [IBM][CLI Driver][AS] SQL0104N An unexpected token "<END-OF-STATEMENT>" was found following "". Expected tokens may include: "( + - ? : DAY INF NAN RID ROW RRN". SQLSTATE=42601 (SQLNumResultCols[-104] at /root/PDO_IBM-1.3.6/ibm_driver.c:153) (SQL: select * from )`
I'm using the db2_ibmi_ibm driver.
Here is my php info linked to the driver :
EDITED :
php version is 7.3.4
centos version is 7
Also I made a from scratch php script running and I can get the results from a query using the db2_connection method. So I'm pretty sure it's PDO related :-/
Ok I found the issue, my scheme and database were wrong, so the query wasn't correct.
The PDO constants are not needed in my case.
Thanks for your answers

Magento Upgrade 1.3 1.4 Pear Error Invalid Argument foreach

Hello I am trying to upgrade Magento 1.3 to 1.4. using this guide http://astrio.net/blog/magento-upgrade-guide/
I tried the command ./pear upgrade -f magento-core/Mage_All_Latest-stable
I got the error
Notice: Array to string conversion in PEAR/REST/10.php on line 85
PHP Notice: Array to string conversion in /home/www/sss/staging.mysite.net/public/downloader/pearlib/php/PEAR/REST/10.php on line 85
So I tried Magento upgrade PEAR error ( specifically this command ./pear channel-update connect.magentocommerce.com/core ) .. but that gives me the error:
Updating channel "connect.magentocommerce.com/core"
Channel "connect.magentocommerce.com/core" is not responding over http://, failed with message: File http://connect.magentocommerce.com:80/core/channel.xml not valid (received: HTTP/1.1 404 Not Found
)
Trying channel "connect.magentocommerce.com/core" over https:// instead
Cannot retrieve channel.xml for channel "connect.magentocommerce.com/core" (File https://connect.magentocommerce.com:443/core/channel.xml not valid (received: HTTP/1.1 404 Not Found
))
Ideas?
You waited a bit too long to upgrade if you want to use Magento Connect to do it.
In order to upgrade 1.4 to a later version using Magento Connect requires you to upgrade to the 1.5 PEAR Connect package which switches from using ./pear to ./mage. There is no equivalent to doing this upgrade for 1.3 to use Connect to upgrade to 1.4.
You will need to manually download and apply the Magento 1.4 upgrade by downloading the full package from the Magento CE Download page under the Release Archives for the version of 1.4 you wish to upgrade to.
Of course, test it hard on a staging server as you will find that there will be template issues, database upgrade issues, etc.

Assigning the return value of new by reference is deprecated

Install "xampp-win32-1.7.3.exe" and put my php project in htdocs folder. this is working on another machine which having PHP version of 5.3 same version is here also but gives me following error
Deprecated: Assigning the return value
of new by reference is deprecated in
C:\xampp\htdocs\businesscaliber\system\codeigniter\Common.php
on line 62 A PHP Error was encountered
Severity: 8192
Message: Function
set_magic_quotes_runtime() is
deprecated
Filename: codeigniter/CodeIgniter.php
Line Number: 45
Make sure you have your codeigniter version updated to the last version.
The cause of deprecation is Old version like PHP 4 which affects the
this->wsdl =& new wsdl($this->wsdlFile,$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout);
and
$GLOBALS['_transient']['static']['nusoap_base']->globalDebugLevel = 9;
all you need to do is Comment them find them in the Line numbers and run again. Goodluck!

Resources