This is a fork from Zend Framework 1.12.16 Release.
Contains Zend Framework 1 plus performance improvements and bug fixes.
The files in this archive are released under the Zend Framework license. You can find a copy of this license in LICENSE.txt.
This project forked from zendframework/zf1
ZF1 adopted for Magento 2. Use composer in Magento 2 root to download it.
License: BSD 3-Clause "New" or "Revised" License
This is a fork from Zend Framework 1.12.16 Release.
Contains Zend Framework 1 plus performance improvements and bug fixes.
The files in this archive are released under the Zend Framework license. You can find a copy of this license in LICENSE.txt.
E_ALL
)Shipping label document opens.
Error message is displayed:
Deprecated Functionality: Optional parameter $genNum declared before required parameter $factory is implicitly treated as a required parameter in /var/www/html/vendor/magento/zendframework1/library/Zend/Pdf/Element/Reference.php on line 91
The entrypoint to the error seems to be Zend_Pdf::parse
.
Getting the below error for PHP 8.1.
1 exception(s):
Exception #0 (Exception): Deprecated Functionality: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/html/project/vendor/magento/zendframework1/library/Zend/Log/Formatter/Simple.php on line 103
Exception #0 (Exception): Deprecated Functionality: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/html/project/vendor/magento/zendframework1/library/Zend/Log/Formatter/Simple.php on line 103
<pre>#1 str_replace() called at [vendor/magento/zendframework1/library/Zend/Log/Formatter/Simple.php:103]
#2 Zend_Log_Formatter_Simple->format() called at [vendor/magento/zendframework1/library/Zend/Log/Writer/Stream.php:131]
I am using PHP 8.1 and receiving the following error when sending mail.
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Zend_Registry given in /var/www/ca/vendor/magento/zendframework1/library/Zend/Registry.php:207
The way array_key_exists has changed in php 8
For backward compatibility reasons, array_key_exists() will also return true if key is a property defined within an object given as array. This behaviour is deprecated as of PHP 7.4.0, and removed as of PHP 8.0.0.
Since the bit of code that is causing the TypeError was put into place to fix a previous bug, I have commented out the entire offsetExists()
function in Registry.php so it would fall back to the function in ArrayObject.
Mail is now sending successfully with this function commented out.
Hi,
Is there a security reason that prevents the header from receiving an underline name? example:
invalid_name
I am aware that it is not a good practice, and that "invalidName" should be adopted, but the partner API prevents this use.
https://github.com/magento/zf1/blob/master/library/Zend/Http/Client.php#L453
PHP Fatal error: During inheritance of ArrayAccess: Uncaught Exception: Deprecated Functionality: Return type of Zend_Memory_Value::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/magento/zendframework1/library/Zend/Memory/Value.php
Here's a patch :
--- a/library/Zend/Memory/Value.php
+++ b/library/Zend/Memory/Value.php
@@ -86,7 +86,7 @@
* @param integer $offset
* @return boolean
*/
- public function offsetExists($offset)
+ public function offsetExists(mixed $offset): bool
{
return $offset >= 0 && $offset < strlen($this->_value);
}
@@ -98,7 +98,7 @@
* @param integer $offset
* @return string
*/
- public function offsetGet($offset)
+ public function offsetGet(mixed $offset): mixed
{
return $this->_value[$offset];
}
@@ -110,7 +110,7 @@
* @param integer $offset
* @param string $char
*/
- public function offsetSet($offset, $char)
+ public function offsetSet(mixed $offset, mixed $value): void
{
$this->_value[$offset] = $char;
@@ -126,7 +126,7 @@
*
* @param integer $offset
*/
- public function offsetUnset($offset)
+ public function offsetUnset(mixed $offset): void
{
unset($this->_value[$offset]);
Magento Admin Order Print Error
Exception #0 (Exception): Deprecated Functionality: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in vendor/magento/zendframework1/library/Zend/Pdf/Resource/Font/Type0.php on line 241
Why Magento not using latest laminas db component,why still Magento depending on this legacy orm?
Magento don't have time to convert this?
Or we can see this change in Magento 3.0 version?
Exception #0 (Exception): Notice: Undefined variable: line in ../vendor/magento/zendframework1/library/Zend/Config/Yaml.php on line 292
zf1/library/Zend/Config/Yaml.php
Line 292 in 4df0182
When installing Magento 2.3.4 using composer (version 1.10.1 or higher) with the optimised autoloader flag results in this warning:
Deprecation Notice: Class Zend_Validate_Barcode_IntelligentMail located in ./vendor/magento/zendframework1/library/Zend/Validate/Barcode/Intelligentmail.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
FYI: composer version 1.10.0 started adding these warnings to prepare for composer 2.0 to be released soonish probably
If I have to guess, it's probably a case mismatch, the class is called Zend_Validate_Barcode_IntelligentMail
, but the file is called Intelligentmail.php
. Notice the different casing of the M
letter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.