VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Agaton on July 21, 2012, 15:24:32 PM

Title: Error 500 when changing order status
Post by: Agaton on July 21, 2012, 15:24:32 PM
This error message appears each time I change the order status in Virtuemart....

Server error
The website encountered an error while retrieving http://www.domain.co.uk/administrator/index.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this web page later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

This is a common error message I know, but I cannot find any solution on the web for this instance...

Has anybody encountered this before and have they found a fix.

It occurred in version 2.0.6 and still occurs after upgrade to 2.0.8e. I am running Linux server with php 5.3.8. Everything else runs fine....
Title: Re: Error 500 when changing order status
Post by: jenkinhill on July 21, 2012, 18:38:45 PM
.htaccess or SEF issue???
Title: Re: Error 500 when changing order status
Post by: Robert V. on July 22, 2012, 00:01:20 AM
Had the same problem when accessing the template (the test site worked fine under windows)
I got the error 500 due to the templatedetails.xml file -> In linux this had to be changed to templateDetails.xml

took  me 2 days to figure this out,

hope it helps...
Title: Re: Error 500 when changing order status
Post by: Agaton on July 23, 2012, 12:09:20 PM
Quote from: jenkinhill on July 21, 2012, 18:38:45 PM
.htaccess or SEF issue???

Any chance you could elaborate please as I have exactly the same install on the same server with another website and this works fine... The only difference one was an upgrade the other a fresh install...

Title: Re: Error 500 when changing order status
Post by: Agaton on July 23, 2012, 14:26:20 PM
Hi Jenkinhill,

I have looked into this further and have found that the only difference between the working install and the problematic install is that the 'vendor tab' is missing.

This is the only reference I have found on the forum http://forum.virtuemart.net/index.php?topic=104315.0  (http://forum.virtuemart.net/index.php?topic=104315.0) and that hasn't been solved.

Do you know what would cause this?

As for the original 500 error message issue I have checked all SEO settings with the working install and the broken install and they are both exactly the same, I have also copied over the .htaccess file which is from the working install.

That does not appear to be the issue as they are now the same and the broken site is still broken and the working site still works....

Any other ideas?
Title: Re: Error 500 when changing order status
Post by: jenkinhill on July 23, 2012, 15:09:36 PM
Vendor tab missing under Store  in BE suggests an installation error but you have updated this site and the error was still there? I assume you updated using Joomla's extension installer.

Have you checked the server error logs for more information on the 500?.
Title: Re: Error 500 when changing order status
Post by: Agaton on July 23, 2012, 17:59:21 PM
Yes I did update using the extension installer. I can't work out why its like it is. I have reinstalled vm and aio and now I have another issue where the SEF links won't work... Not sure if thats a related issue or cache. So I disabled SEF and the invoices still don't work and the 500 error still exists.

The error logs generate this for the 500 error message....

[warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined method MYPDF::SetDefaultMonospacedFont() in /var/www/vhosts/domain.co.uk/httpdocs/components/com_virtuemart/controllers/invoice.php on line 155

I would appreciate any guidance.....
Title: Re: Error 500 when changing order status
Post by: zhengss611 on July 24, 2012, 08:09:26 AM
it is very good
Title: Re: Error 500 when changing order status
Post by: maxdeal on July 25, 2012, 01:15:51 AM
Hi,

We have also problem with http 500 error when changing status for an order. It is only when changing to "Cancelled".

This error is also generated for the customer when trying to order more than 1 product. There is generated an order with only the first product, but without name of the user/customer.

Using VM 2.0.8e

We need help. We don't like missing customers :-(

Best regards
Maxdeal
Title: Re: Error 500 when changing order status
Post by: Agaton on July 26, 2012, 15:50:15 PM
Hi Jenkinhill,

Did you have any other suggestions about this problem?
Title: Re: Error 500 when changing order status
Post by: Agaton on July 27, 2012, 16:55:34 PM
I assume you didn't have any other suggestions jenkinhill.. :-)

After doing my own testing, the only thing that was different between the two sites was Sobipro... it appears that Virtuemart and Sobipro current stable versions conflict.

I have experienced and reported this before... I am rebuilding the VM site over the weekend so I will update this thread after that to confirm.
Title: Re: Error 500 when changing order status
Post by: Milbo on July 27, 2012, 17:33:34 PM
Quote from: Robert V. on July 22, 2012, 00:01:20 AM
I got the error 500 due to the templatedetails.xml file -> In linux this had to be changed to templateDetails.xml

Which templateDetails.xml? Of your template?

Quote from: spike1968 on July 23, 2012, 14:26:20 PM
I have looked into this further and have found that the only difference between the working install and the problematic install is that the 'vendor tab' is missing.

When the vendortab is missing for your shopowner, then use the tools and set the id of the new shopowner in tools and migration. You can also just go to your db and check the table virtuemart_vmusers and ensure that user_is_vendor=1 and vendorId=1 is set only for your shopowner and not for others.
Title: Re: Error 500 when changing order status
Post by: dontflinch on July 27, 2012, 21:32:53 PM
I suggest this could be something to do with the same problems I have been noticing with tcpdf invoice generation for the last several version vm2.

PHP Fatal error: Call to undefined method MYPDF::SetDefaultMonospacedFont() in /var/www/vhosts/domain.co.uk/httpdocs/components/com_virtuemart/controllers/invoice.php on line 155

this is the same monospace font stuff I mention commenting out that breaks my pdf version layout:
http://forum.virtuemart.net/index.php?topic=105709.msg352326#msg352326

and/or are you using a png/gif logo in shop config
http://forum.virtuemart.net/index.php?topic=99287.msg350813#msg350813

you cannot use alpha channel image or it breaks pdf generation in its tracks.
In my version 2.0.7g it says this:
The server supports mime type recognition
Supported filetypes for thumbnail creation GIF, JPG, PNG, WBMP


but imo could have an additional note saying but jpg is needed for pdfs

I would suggest again to dev team to put a note to that effect on the logo upload box.
Title: Re: Error 500 when changing order status
Post by: Robert V. on July 28, 2012, 13:40:38 PM
QuoteWhich templateDetails.xml? Of your template?

In the filename. Windows doesn't care about capitol letters, Linux does.
My testsite was on WAMP. the provider uses LAMP.
The template xml file on itself had no errors, it was just that on linux joomla expected a capitol D in templateDetails.xml
Title: Re: Error 500 when changing order status
Post by: dontflinch on July 28, 2012, 19:19:14 PM
Quote from: Robert V. on July 22, 2012, 00:01:20 AM
Had the same problem when accessing the template (the test site worked fine under windows)
I got the error 500 due to the templatedetails.xml file -> In linux this had to be changed to templateDetails.xml

took  me 2 days to figure this out,

hope it helps...

If you had this problem with one of your main template files were you not having a lot of other 500 problems besides changing order status?

I had the file name capitalization issue a long time ago when I moved a site and it broke tons of stuff all over the place.
Title: Re: Error 500 when changing order status
Post by: dontflinch on July 28, 2012, 19:26:58 PM
Quote from: spike1968 on July 23, 2012, 17:59:21 PMThe error logs generate this for the 500 error message....

[warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined method MYPDF::SetDefaultMonospacedFont() in /var/www/vhosts/domain.co.uk/httpdocs/components/com_virtuemart/controllers/invoice.php on line 155

I had to comment out these lines in the same file to stop the 500 on checkout in mine (2.0.7g):
(line 151)// $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);

//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);

//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);

//TODO include the right file (in libraries/tcpdf/config/lang set some language-dependent strings
$l='';
$pdf->setLanguageArray($l);

// set default font subsetting mode
(line 169) // $pdf->setFontSubsetting(true);


and, now I see I should have answered my own question of where to get rid of the pdf attachment. :-[ :)
Title: Re: Error 500 when changing order status
Post by: Agaton on July 30, 2012, 09:49:46 AM
The issue I have is that this only happens on one install of VM and Joomla...

All the other installs on the same server (my own dediacted server) work perfectly and the only thing different is SOBIpro install..... I have almost finished the rebuild and will let you know the result...
Title: Re: Error 500 when changing order status
Post by: mbrando on August 18, 2012, 00:31:12 AM
Hi,

I this issue too when I confirm check out.

- Mike