News:

Support the VirtueMart project and become a member

Main Menu

Error 500 when changing order status

Started by Agaton, July 21, 2012, 15:24:32 PM

Previous topic - Next topic

Agaton

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....

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Robert V.

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...

Agaton

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...


Agaton

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 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?

jenkinhill

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?.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Agaton

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.....


maxdeal

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

Agaton

Hi Jenkinhill,

Did you have any other suggestions about this problem?

Agaton

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.

Milbo

#11
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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

dontflinch

#12
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.

Robert V.

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

dontflinch

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.