how fix argon2i error in Sylius installation? - sylius

At the end of the installation with composer this error appears:
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In SecurityExtension.php line 561:
!!
!! Algorithm "argon2i" is not available. Either use "argon2id", "auto" or upgr
!! ade to PHP 7.2+ instead.
!!
!!
!!
Script #auto-scripts was called via post-install-cmd
I use a Mac with Catalina OS
XAMPP
PHP 7.2.29
How can i fix this error

Try to change in config/packages/security.yaml these lines:
security:
...
encoders:
Sylius\Component\User\Model\UserInterface:
algorithm: sha512
argon2i : sha512
source

Related

Class not found error when attempting to publish kyslik/column-sortable package

When i attempt to publish kyslik/column-sortable package with the command
php artisan vendor:publish --provider="KyslikColumnSortableColumnSortableServiceProvider" --tag="config"
I get the error
In ProviderRepository.php line 208:
Class "KyslikColumnSortableColumnSortableServiceProvider" not found
following instructions from https://meritocracy.is/blog/2020/04/17/laravel-using-pagination-sorting-and-filtering-with-your-tables/
I ran into the same issue when following those instructions. It looks like there's a typo in two parts.
In config/app.php there needs to be some back slashes to properly identify the provider class. Use this instead:
Kyslik\ColumnSortable\ColumnSortableServiceProvider::class,
And same thing when running the php artisan command:
php artisan vendor:publish --provider="Kyslik\ColumnSortable\ColumnSortableServiceProvider" --tag="config"
That fixed the issue for me. I haven't made it further in the instructions yet to see if anything else needs to be adjsuted. I found the correct commands on these instructions: https://www.laravelia.com/post/laravel-9-table-sorting-example-with-pagination

how to install Imagic in WAMP server?

I am getting error php_imagick.dll is not working. %1 is not a valid W32 application.
I am using WAMP Server Apaches 2.4.4.6 and PHP 7.4.9. my OS is windows 10 64bit. i think i download php_imagick-3.6.0rc2-7.3-nts-vc15-x64.zip file.
I have installed all DDL file in PHP7.4.9/ext/ and apply all process for install Imagic but still i am getting error
i have add extension in php.ini file.
enter image description here
Warning: PHP Startup: Unable to load dynamic library 'php_imagick' (tried: d:/wamp/bin/php/php7.4.9/ext/php_imagick (%1 is not a valid Win32 application.), d:/wamp/bin/php/php7.4.9/ext/php_php_imagick.dll (The specified module could not be found.)) in Unknown on line 0
i tried to find required file and package form
https://windows.php.net/downloads/pecl/releases/imagick/3.6.0rc2/ also checked
https://www.apachelounge.com/viewtopic.php?t=6359
but nothing helpful for me. that Module is not loading..
please help me....
check that the dll is not blocked:
try downloading the imagick threadsafe for here, version made for your PHP version
also install it from here on top of it all

SignTool Error: Invalid option: /fd

I publish my exe and activate auto updates.
But when I compile the exe, there is an error:
Severity Code Description Project File Line Suppression State Error An
error occurred while signing: Failed to sign
bin\Debug\app.publish\myapp.exe. SignTool Error: Invalid option: /fd
So I couldn't publish.
When I try to uncheck "Sign the ClickOnce manifest" the error is gone
but I couldn't install the package because Windows doesn't allow and the Windows Defender SmartScreen blocks my app because there's no certificate.
I have to add a certificate from "Sign the ClickOnce manifest" but now it gives the "SignTool Error: Invalid option: /fd" error.
How can I solve this problem?
I had to change the Signature Algorithm to sha1RSA from sha256RSA
I did just the opposite as Stefano - changed it from sha256RSA to sha1RSA - and then it allowed me to publish without the error.
Just changing the signature algorithm may do the trick.
I encountered the same error message when migrating an old ClickOnce project from VS2018 to VS2017. It seems my VS2018 was using an old version of SignTool.
I found (and succeeded with) a tip to change registry key HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows to make Windows to use newer SDK (in my situation SDK v8.1A was the most recent).
The original tip can be found here: https://social.msdn.microsoft.com/Forums/en-US/a39b9f82-aaec-4bbd-8cb2-3cade50796ba/an-error-occurred-while-signing-failed-to-sign-bindebugapppublishprogramexe-signtool-error (scroll down to answer by nikidimi)
Go to the myapp.csproj file, which is the project file, and search for 'SignManifests' PropertyGroup, change the value to false, and the error disappears. This worked for me.

File upload issue in CI

I am using CI and facing a problem while uploading file.
It gives a message mentioned below.
==================================================
Severity: Warning
Message: escapeshellarg() has been disabled for security reasons
Filename: libraries/Upload.php
Line Number: 1066
In some answers, I found that it is a server issue and CI has nothing to do with it. Now, is there any way to upload file bypassing the escapeshellarg() or is there any libraries I can use that doesn't require escapeshellarg()?
Please help.
I'm not sure which specific version of CI you're using, but the latest version does a check for that function before using it.
Take a look at the code here:
$cmd = function_exists('escapeshellarg')
? 'file --brief --mime '.escapeshellarg($file['tmp_name']).' 2>&1'
: 'file --brief --mime '.$file['tmp_name'].' 2>&1';
I'd say either upgrade or update the code manually.

Problems to install couponic on localhost

I'm trying to install the couponic on my localhost (xampp), but I'm getting an error message:
Strict Standards: Non-static method UFactory::getModuleAlias() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\couponic\framework\uniprogy\framework\worklets\UWorkletConstructor.php on line 254
This is one of the errors, but all of them are from the same type on the same function (getModuleAlias).
I already rename the protected/config/inital folder to protected/config/public and when I access using the url right url (localhost/couponic/install) I get these errors.
Can you help me?
The problem here is that you have install probably in localhost php 5.4 and couponic doesn't support php 5.4, to bypass this problem you will have to replace
public function getModuleAlias($module)
with
static public function getModuleAlias($module)
but more problem will come up, until uniprogy make the script working on php 5.4
Disable strict errors in your php.ini:
error_reporting = E_ALL
Right now you probably have:
E_ALL & E_STRICT
So you need to lose the E_STRICT part.
I had "E_ALL" already and it wasn't working. I switched to "E_ERROR" and that did the trick.
error_reporting = E_ERROR
E_ALL "includes E_STRICT as of PHP 6.0.0" but we're not quite there yet.