VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: SteP[IT] on January 15, 2015, 11:38:41 AM

Title: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: SteP[IT] on January 15, 2015, 11:38:41 AM
I need to test VM 3.0.3 an Joomla 2.5.28 to see if I can let the website customer start from this step before also upgrading Joomla, but the AIO upgrade from 3.0.2 to 3.0.3 doesn't work: it gives back a "Unable to write entry" error. The 3.0.2 AIO version installs correctly.
Title: Re: Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: SteP[IT] on January 16, 2015, 18:03:08 PM
Any hint? Regards
Title: Re: Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: GJC Web Design on January 17, 2015, 00:43:02 AM
it normally means a permission problem - folder or file

dig into the Joomla file that is displaying the message - see how i did it for a similar problem here:
http://www.gjcwebdesign.com/joomla-virtuemart-tips/785-joomla-an-error-has-occurred-copy-file-failed.html

then you can see what file is not being able to be written
Title: Re: Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: SteP[IT] on January 17, 2015, 15:25:35 PM
Following that suggestion (thanks for that), I have found that the initial problem was probably related to the used archive type (3.0.2 AIO is a zip, 3.0.3 is a tar.gz). Then I have rezipped its content in a zip file, but another problem arised during the AIO installation, it gave back an error:

[quote][quote]Fatal error: Call to undefined method VirtueMartModelUpdatesMigration::updateJoomlaUpdateServer() in /var/www/www-plugged-data/www-toolware/tmp/install_54ba6d175af3c/com_virtuemart.3.0.3_ext_aio(1)/script.vmallinone.php on line 542 [/quote][/quote]

To get the installation working I had to comment out in script.vmallinone.php all lines having that call (lines 176, 245 and 542). In that way the installation ended up correctly and the AIO has been installed.

It seems to be a bug to be fixed.
Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: GJC Web Design on January 17, 2015, 16:28:10 PM
appears your server can't handle tar.gz so zipping was the correct thing to do

I have installed many many 3.0.3 during testing and live sites and have never seen the error you mention ->VirtueMartModelUpdatesMigration::updateJoomlaUpdateServer

Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: Daniel Sjöstrand on March 07, 2015, 08:24:51 AM
I had the exact same problem. I didn't use the Zip file

Tryed commenting out all lines containing:
$umimodel->updateJoomlaUpdateServer( 'module', 'mod_vmmenu', $dst   );

And the AIO installed. I don't know if this affects functionallity though.... Seems like a bug to me also.

Thankyou for the tip about commenting out these lines! :)
Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: Milbo on March 07, 2015, 09:37:20 AM
use the aio 3.0.6.2,

the real reason was that the AIO did not create folders.
Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: Daniel Sjöstrand on March 08, 2015, 21:47:27 PM
*FrEck*

After doing this last thing friday I thought everythung was fine. never checked the site...
Unfortunately there must be some major error here, because now the frontpage says this:

Fatal error: Call to undefined method shopFunctionsF::sortLoadProductCustomsStockInd()

* I've checked the filepremissions.
* Uninstalled, re-installed the component (AIO)
* Tryed installing AIO 3.0.6_extract_first.zip instead of aio 3.0.6.2
* Tryed commenting out the three lines that causes the error at install...
* Tryed installing the AIO manually


- Update -
After clearing the tmp folder and editing install files from 3.0.6 I was able to get the front end to work again...


VM 3.0.2
Joomla 3.4.0


Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: GJC Web Design on March 08, 2015, 22:42:58 PM
http://bit.ly/1whhcnQ
Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: Milbo on March 09, 2015, 17:45:07 PM
Quote from: Daniel Sjöstrand on March 08, 2015, 21:47:27 PM
Fatal error: Call to undefined method shopFunctionsF::sortLoadProductCustomsStockInd()

Means that the Core is not updated.
Title: Re: [partially solved] Upgrading AIO from 3.0.2 to 3.0.3 not working on J 2.5.28
Post by: Daniel Sjöstrand on March 12, 2015, 22:11:55 PM
Milbo

Thank you for this (and not saying that i'm an idiot)

I *Facepalm* idiot in some late-night foggy mind failed the install of VM core before updating the AIO.

I think this was due to Joomla auto update - "There is a new update - install it Yes/no"
I clicked Update and thought it was what I was suppesed to do. Now I realise I should have updated Joomla core first

ha ha ha