VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Tee shot on September 15, 2011, 14:10:39 PM

Title: [fixed]Error 500!
Post by: Tee shot on September 15, 2011, 14:10:39 PM
hi
I was about to uploarder a picture of virtuemart and when I confirmed I had a 500 error, since the site is more accessible and I get the message:

The server hosts three other sites without any problems for the moement 2 with joomla.

this message in the file error_log :
Quote[15-Sep-2011 13:33:11] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:35:56] PHP Fatal error:  Call to a member function getProduct() on a non-object in /home/teeshotw/public_html/pessacnatsynchro/components/com_virtuemart/views/productdetails/view.html.php on line 79

it's urgent the whole site is down.

thank
Title: Re: Error 500!
Post by: PRO on September 15, 2011, 14:29:07 PM
the site is still down because a picture would not upload?
Title: Re: Error 500!
Post by: Tee shot on September 15, 2011, 14:34:33 PM
apparently yes, the other sites works perfectly, I put an index.html file and it works, I do not know what to do!

http://www.pessac-natsynchro.fr/

http://www.pessac-natsynchro.fr/index.php

same server

http://www.willdeluna.fr/
http://www.dmellot.fr/
Title: Re: Error 500!
Post by: PRO on September 15, 2011, 15:09:48 PM
disable the cart module and see what happens
Cannot access protected property VirtueMartViewCart:

^^^ that seems like its from the shopping cart module
Title: Re: Error 500!
Post by: Tee shot on September 15, 2011, 15:18:28 PM
I do not have access to the admin, except the html and txt to the root nothing works.

I do not have access to the admin, except the html and txt to the root nothing works. What I do not understand is that the frontpage is not virtuemart and the link to the shop is special access. So the rest should work.
Title: Re: Error 500!
Post by: PRO on September 15, 2011, 15:21:43 PM
could be an htaccess problem, have you tried disabling it?
Title: Re: Error 500!
Post by: Studio 42 on September 15, 2011, 15:28:47 PM
Can you copy/paste your server logged errors ?

YOu can try to rename the folder mod_virtuemart_cart (add a simple - for eg.)
Then joomla dont find it, but this don't break your site

If you dont have acces to administrator folder, in many case t's not a problem with .htaccess but you can try to rename it to
Title: Re: Error 500!
Post by: Studio 42 on September 15, 2011, 15:32:42 PM
For what i can see it's as the server don't find your joomla directory. Can you look in your server setting(provider account or linux setting) if the alias are correct ?
The 500 error seems to come from apache not from joomla.
Title: Re: Error 500!
Post by: Tee shot on September 15, 2011, 15:45:05 PM
That's all for now :

Quote[14-Sep-2011 14:31:13] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[14-Sep-2011 14:31:15] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[14-Sep-2011 14:31:23] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:32:08] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:32:18] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:32:34] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:33:08] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:33:11] PHP Fatal error:  Cannot access protected property VirtueMartViewCart::$_name in /home/teeshotw/public_html/pessacnatsynchro/libraries/joomla/plugin/plugin.php on line 102
[15-Sep-2011 13:35:56] PHP Fatal error:  Call to a member function getProduct() on a non-object in /home/teeshotw/public_html/pessacnatsynchro/components/com_virtuemart/views/productdetails/view.html.php on line 79

since nothing

YOu can try to rename the folder mod_virtuemart_cart (add a simple - for eg.) : but it made ​​no difference
.htaccess  : but it made ​​no difference

directory called synchropessac, I'll look and ask the host to check

thank
Title: Re: Error 500!
Post by: Tee shot on September 15, 2011, 16:06:15 PM
Oooouuuuufffffff save !!!

I found, it incomprehensible, the directory was pessacnatsynchro chmod to 777, 755 and I put it back. How can a directory chmod change alone? I had no ftp connection in progress and I was in the admin about to upload a image on article virtuemart.

thank you for helping me! I was a little panicked
Title: Re: [resolved]Error 500!
Post by: Tee shot on September 15, 2011, 17:25:08 PM
I just do the same manipulation by choosing to replace the image and my site
was again 500 error, I had to reset the chmod to 755, a bug?
Title: Re: [bug or problem ?]Error 500!
Post by: Studio 42 on September 15, 2011, 17:26:02 PM
Do you use FTP mod ?
Title: Re: [bug or problem ?]Error 500!
Post by: Studio 42 on September 15, 2011, 17:27:57 PM
Can you test same upload, directly with Joomla?
Title: Re: [bug or problem ?]Error 500!
Post by: Tee shot on September 15, 2011, 17:28:13 PM
not just select the administration to replace an image, back in the admin:

File /home/teeshotw/public_html/pessacnatsynchro/images/stories/virtuemart/product/resized/maillot_front.JPG uploaded
File could not be deleted
Échec de la suppression de pessacnatsynchro
Product successfully saved
Title: Re: [bug or problem ?]Error 500!
Post by: Studio 42 on September 15, 2011, 17:32:50 PM
Tee shot.

Peut tu faire le teste de transfert avec joomla pour voir si le bug provient bien de virtuemart ?
Et vérifier si tu as activé le mod FTP sur ton site.

Merci
Title: Re: [bug or problem ?]Error 500!
Post by: Studio 42 on September 15, 2011, 17:43:20 PM
On reading your post i think we have found the problem.
The script try to delete the file pessacnatsynchro
but this is your site mainfolder.
Because it's a folder, it's only do the first step(chmod it) but cant delete it(it's not a file)

Some change have be done for upload...
We look for this.
tks for your report

Salutation,
Patrick
Title: Re: [bug or problem ?]Error 500!
Post by: Milbo on September 15, 2011, 17:47:04 PM
ahh okey,...

you replace an image.  The url for the old file is wrong. I found the error this morning, expect a fix next days. So long you may exchange the images by using the joomla file handler or something simular (extplorer)
Title: Re: [bug or problem ?]Error 500!
Post by: Tee shot on September 15, 2011, 17:49:46 PM
What you transfer joomla? I can do ftp and virtuemart. I just repeat several times the manip, it looks random, but it happened again on replace thumbs.

Why the script would delete a file with the name of pessacnatsynchro?

back in 45 minutes  :)

Thank
Title: Re: [bug or problem ?]Error 500!
Post by: Milbo on September 15, 2011, 21:55:44 PM
I just repaired the script. The problem is that the path was not set correctly, when replacing a file which has no type already.
It is now in the svn and will be tested.

The files are by default in the images/stories folder of joomla. So you can just use joomla filehandler to load the image to the right place.
Title: Re: [bug or problem ?]Error 500!
Post by: Tee shot on September 15, 2011, 23:21:07 PM
Ok I'll do it this way until

Thank