Magento upgrade PEAR error - magento

I was following the instructions at http://turnkeye.com/blog/magento-upgrade-guide/ when i was up to the command
./pear upgrade -f magento-core/Mage_All_Latest-stable
and am getting the error
WARNING: channel "connect.magentocommerce.com/core" has updated its
protocols, use "channel-update connect.magentocommerce.com/core" to
update
I have searched the web and can't find anything that refers to this.
I have tried
./pear upgrade -f channel-update connect.magentocommerce.com/core
but that does not work.
Can anyone help please?
Thanks

Just had this problem, you need to run:
./pear channel-update connect.magentocommerce.com/core
after that completes you should now be able to run:
./pear upgrade -f magento-core/Mage_All_Latest-stable

What is wrong with giving it a go using the GUI - Magento Connect Manager in Admin->System?
Assuming you have everything backed up, you can also zap public_html and reinstall 1.4 - makes no odds doing it that way as you will have lots to update including your theme, with reinstall you will keep your products, customers and orders.

Related

MacOS MAMP and php 8.1

I am trying to get MAMP runing with PHP 8.1 but what I see as latest version for MacOS is 8.0.8, is there a way to run 8.1 ?
I have gone thru many tutorials in which they explain on how to switch from one of the installed versions but I can't seem to find a way to install additional PHP versions.
following up relating to #Quink's answer
8.1.0 is available in the dropdown (not in the picture because I already downloaded it)
then quit and restart mamp
then you can find the folder by opening phpinfo page and seeing the path
not sure if this is needed, but at this point I copied the folder and pasted it in the main MAMP/conf directory where all the other PHP versions are
I was looking for this myself. I found out that the easiest way to do this is to start your trial version of the pro. There you have the option to download/ install the php8.1 version. After this I switched back to the basic MAMP and everything is working properly
Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
get latest php version i.e. 8.1 for now
brew install php
Verify php
which php
php -version
now go to to /usr/loca/Cellar/php, copy php version folder you want i.e. 8.1 for now
go to Application/MAMP/bin/php and paste this folder
rename your folder like others i.e. "8.1.10_1" to "php8.1.10" in my case
at this point you can quite the mamp and reopen it and you will see php8.1 version in your mamp php version's dropdown
now go to your terminal and
/Applications/MAMP/Library/bin/apachectl start
and you will see an error i.e. Syntax error on line 160 of /Applications/MAMP/conf/apache/httpd.conf... in my case
to resolve this go to /usr/local/lib/httpd/ and copy the "modules" folder
now past it in /Applications/MAMP/bin/php/php8.1.10/
YOUR MAMP IS ALL SET BUT if you try to reach phpadmin you will see an error, for that
go to /Applications/MAMP/bin/phpMyAdmin5 and edit config.inc.php.
Locate this text: $cfg['Servers'][$i]['host'] = 'localhost' and change it to ``$cfg['Servers'][$i]['host'] = '127.0.0.1'`
Restart your server.
HOPE THIS HELP YOU
This YouTube Video answers this perfectly, and then follow this SO answer
You might also want to change your local connection host from localhost to 127.0.0.1
PS: Copy /usr/local/Cellar/php/8.<version_number>/lib/httpd/modules/libphp.so to /Applications/MAMP/bin/php/php8.<version_number>/modules/libphp.so

Print report on print button in odoo10

Hi I am having a problem in printing the report. I have coded the report format in html and then made its module and attached it with the relevant model. and upload it on my online server
First I was receiving this error : Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display
I have solved this problem using this following link https://gist.github.com/tejastank/45b6eba13fb38e24110218e3ce50129b
Its still not printing but keeps on creating child of the report in rec_name area, please see the attachment
and showing this error on the side
Questions:
1).How I can print the report directly from the print button without getting these errors.
One of our client give us access of there ERP for some changes, I have seen there reports when we click on print button on there ERP it downloads the PDF version pf the report and then we print it. so
2). How can we download the report in PDF formate.
I am using odoo10 not odoo8. Thanks in advance
Try this Solution :
Downlaod this -https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
and then follow the step :
(IF THE ABOUT WKHTMLTOPDF IS NOT INSTALL THAN AND THAN 1ST STEP HAVE TO DO IT)
1) sudo dpkg -i http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
2) sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
3) sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
may be it will help you.
Try this solution:
Download wkhtmltopdf https://downloads.wkhtmltopdf.org/0.12/0.12.1/
Install *.deb file using this command, sudo dpkg -i file_name.deb
If any error occur during installation execute, sudo apt-get install -f
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
Restart odoo server and try.
Hope it will resolve your problem.
Try with this one might it ill help you..
sudo pip install Wkhtmltopdf
Hope this will solve your problem.
I tried all possible solutions, the only one worked so far is the installation using pip (pip3).

Laravel5 on windows7 xampp

I installed laravel5 on windows successfully. but showing errors when i copy codes from here want to install any other dependencies?
i got something like this(screenshot). also it is keep saying to update loadash and graceful-fs.. How to do that?
Screenshot
You need to install a better command line tool then Command Prompt. Try installing Git Bash
Once you've done this I would suggest going through the Laravel installation here

Building XDebug For Use by MAMP?

I'm using MAMP on Mac OSX Mavericks. I'd like to install the latest XDebug, v2.2.4. Per the XDebug Wizard, I downloaded the XDebug 2.2.4 source. I have many versions of phpize installed on my system - one that is in /usr/bin/, and many others that come with MAMP. MAMP supplies the required phpize for each version of PHP it includes.
Seeking to use the correct phpize, per the XDebug Wizard instructions - http://xdebug.org/docs/faq#custom-phpize - I ran the phpize for PHP 5.5.3 via:
/Applications/MAMP/bin/php/php5.5.3/bin/phpize
..and got this output:
grep: /Applications/MAMP/bin/php/php5.5.3/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.3/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.3/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Just in case this was not an error (since it appeared that I was following XDebug Wizard directions), I then ran configure via:
./configure --with-php-config=/Applications/MAMP/bin/php/php5.5.3/bin/php-config
...and I ran:
make
...but got this error:
fatal error: 'php.h' file not found
What is the correct way to build XDebug on OSX for use by MAMP?
Thanks very much in advance to all for any thoughts or info.
I had a similar issue and it was resolved after installing XCode and the Command Line Tools for XCode. I already had XCode installed, but I recently moved over to a new machine so I had to open it back up and it updated some things. Then I opened Terminal and ran the command...
xcode-select --install
That popped up a prompt to install the command line tools which I did and it resolved my issue.
Incase anyone else stumbles across this from Google...
My issue was the wrong phpize binary was found on the path.
I was able to resolve this using the Xdebug FAQ, specifically this section: https://xdebug.org/docs/faq#custom-phpize
When Xdebug wizard asks you to run phpize, instead find and run phpize in your MAMP directory. For me, this was:
/Applications/MAMP/bin/php/php7.1.19/bin/phpize
After this, you should see an output similar to your tailored installation instructions.
Then find and run php-config in your MAMP directory (Note: this command must be run from where you have Xdebug stored on your machine). For me, this was:
./configure --with-php-config=/Applications/MAMP/bin/php/php7.1.19/bin/php-config
You'll see a bunch of output... Followed by a, "Build complete." message.
Now you can return to your tailored installation instructions (be sure to skip the next step, Run: ./configure).
Try installing autoconf using brew : brew install autoconf

Magento Connect 2.0 - Connection Error try again later

Is anyone else having problems installing new addons using the new Magento Connect version (2.0)? I just installed the latest version, went to install my language packs using the new url’s and i get "Connection Error try again later.” I tried all yesterday and today and still get the same problem. This is an example addon:
http://connect20.magentocommerce.com/community/Locale_Mage_Core_fr_FR
I had the same problem, on investigation I found that PHP-XML was not installed on the server.
As I was on Amazon Ubuntu, so following steps resolved the problem:
yum install php-xml
restart apache.
Found at http://www.e-commercewebdesign.co.uk/blog/magento-tips/magento-connect-v2-0-connection-error-try-again-later.php
When installing an extension from Magento Connect with the URL http://connect20.magentocommerce.com/example/EXAMPLE if you are finding that the error persists one small thing you can try is to remove the http:// from the beginning of the url.

Resources