Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct()
My php version is 5.4
I need to know if I upgrade my php version to 5.5.this error will get solved or not?
I am not sure about this error, but perhaps you are passing some parameter in __construct() function in your magento module function and parent abstract class doesn't accept any parameters.
Upgrading PHP won't fix it. This is a bug in Zend Framework that was fixed in version 1.12. I don't use Magento but as far as I can tell it ships with version 1.11.1 (which is around three years old).
Until Magento updates, your best option is probably to apply the fix to the copy of ZF in your Magento installation. All you need to do is comment out the constructor in lib/Zend/Pdf/FileParserDataSource.php, which is this line: https://github.com/magento/magento2/blob/master/lib/Zend/Pdf/FileParserDataSource.php#L78. You will have to re-apply this fix everytime you update Magento.
Related
I am using Laravel 5.1 and I would like to know how to upgrade to the latest version of Laravel which is 5.4.
Can we directly upgrade to Laravel 5.4 From 5.1 ?
The best way to upgrade is to follow the steps for each version. So upgrade to 5.2 then 5.3 then finally 5.4. The upgrade guides look lengthy but it most cases it wont take to much time because the guide covers all potential changes but they won't all apply to your application.
Alternatively you could install a fresh version of 5.4 then copy your application code into the new Laravel. Since the upgrade for each version is relatively straight forward and this method would lose your git history I wouldn't recommend it.
Another paid method would be to use Laravel Shift which will automate the upgrade process for you.
Edit: As #Scott mentioned you should make sure your server meets the server requirements for your target Laravel version. Specifically make sure you have PHP >= 5.6.4 installed
Well, you first you need to update your composer.json file. Around line 9, you should be requiring in the framework itself. Change that to use version 5.4.*. After that, run a composer update and then, yes, you do need to go through your files manually to address any incompatibilities.
after you replace provider folder to the new version.
https://github.com/laravel-shift/laravel-5.4/tree/master/app/Providers.
i have some error with my application symfony. one error is Unsupported declare 'strict_types'. Please help me to resolve that.
My php version is 7.0.12
My symphony version is 2.7.16
My Ocramius/proxy-manager version is 2.0.3
this is the link to my server : http://www.kossa.cm
I actually encounter the exact same issue and the only ugly fix I could find to just pass through (without fixing it) is to remove that vendor/ocramius/proxy-manager folder and do not run a composer update (that would install the proxy-manager back).
As I said, it is not a proper fix, I'm trying to solve it now.
If you found any kind of information about it, please share it with us ;)
--Edit-- Are you using wamp ?
to solve your problem, downgrade your php version to 5.6, because ocramius is not compatible for the momment with php 7.0 and above!
I try to install Plugins on my Magento 1.9.2.4 on PHP 7.0.4.
All normal Plugins have the same Error Message:
requires PHP version >= 5.2.13 and <= 5.7.0 current is: 7.0.4
The Shop runs after a small bugfix fine. But without Plugins its Useless.
Thanks.
The creator of each extension/plugin in Magento specifies a supported version. It sounds like none of your plugins/extensions support PHP anything greater than a (existent) PHP 5.7. You'll either need to
Contact extension/plugin vendors and ask them to release a version on connect that supports PHP 7
Stop using Magento Connect to install plugins and install them yourselves manually.
The specifics of this are well beyond the scope of an individual Stack Overflow answer.
A joomla site is giving me this error:
Fatal error: Class 'JModelList' not found in /home/site/public_html/administrator/components/com_joomdoc/libraries/joomdoc/application/component/modellist.php on line 16
I only noticed it this morning when i tried the search, The last time i worked on the site was over a month ago (Installing , removing extentions, fixing errors ....) so i can't really figure out at wich point this error surfaced.
I read somewhere that The class JModelList is not used in Joomla 1.5 (what i'm using) .... i don't know how that could happen because i made sur that the extentions i'm using supported joomla 1.5 and i never made an upgrade.
Just in case, the line 16 of modellist.php is
jimport('joomla.application.component.modellist');
class JoomDOCModelList extends JModelList { ...
Help!
thank you.
Like you said, JModelList is not part of Joomla 1.5, so your extension is not compatible to Joomla 1.5.
Joomla does not update anything itselfs. If you have not changed anything, someone else has.
JModelList is indeed not available in Joomla 1.5. It was introduced with Joomla 1.6.
Apparently the extension isn't compatible with Joomla 1.5 anymore in this case. You have to contact the developer of the extension to get more information or notify him of the bug.
But then, you should upgrade Joomla anyway. You're using an unsupported version.
I tried to install ip filter module in joomla 2.5 .while installing i got the fatal error as
Call to undefined method JXMLElement::getElementByPath() in com_ipfilter\install\install.php on line 9
i cant find any help.
can any1 helpto solve this issue
Thanks in advance
Your component, com_ipfilter apparently is for an old version of Joomla, i.g. Joomla 1.5, and Joomla. So you have two options
Rewrite and old component to work with a new version of Joomla (need know PHP programming)
Just look for one alternative and do not use this extension.
If you want the second suggestion, look in special on these extensions http://extensions.joomla.org/search?q=ip+block