VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: apeltoma on November 02, 2012, 11:06:48 AM

Title: [ SOLVED ] Ask Question White window
Post by: apeltoma on November 02, 2012, 11:06:48 AM
Hello Sirs.

I faced irritating problem that i could not find from forum with searches or by browsing.

When trying to submit a question about product (without  Captha in use) there stays white window after pressing submit.

- I use customized Template but i tested it on default Beez2 template as well.
- virtuemart_vendor_id in db is "1"
- sendmail logs indicate it does not receive any attempt to send mail.
- When trying to debug it debug messages does not come in visible after clicking send. Only plain white window.

Used browsers:
- Safari
- Mozilla

Shop: www.shbp.fi

Virtuemart Version 2.0.12f
Joomla version 2.5.7
Joomla Platform 11.4.0

I would appreciate any help.
Br
Aleksi
Title: Re: Ask Question White window
Post by: bytelord on November 02, 2012, 11:15:31 AM
Hello,

When you submit the question you are getting a 500 error ...

"NetworkError: 500 Internal Server Error - http://www.apyachting.fi:8080/index.php/lights/aft-light-detail?tmpl=component"
port 8080?? another domain?www.apyachting.fi? Did you make any changes before you upload your site on your localhost? Check please your joomla configuration ...

Somewhere you have change those links.

Regards
Title: Re: Ask Question White window
Post by: apeltoma on November 02, 2012, 11:23:54 AM
www.shbp.fi domain is framed to www.apyachting.fi:8080
Service Domain under Company domain.

That should not bother as user registering and ordering goods sends emails without any problems.

But thanks. I start going from that. Because that should come in apache logs.

Aleksi
Title: Re: Ask Question White window
Post by: apeltoma on November 02, 2012, 11:38:00 AM
Apache error_log gives following:

PHP Fatal error: Call to undefined function mb_strlen() in ...joomla/components/com_virtuemart/controllers/productdetails.phpon line 74, referer: http://www.apyachting.fi:8080/index.php/lights/aft-light-detail/askquestion?tmpl=component

In that php line is following:
$commentSize = mb_strlen (JRequest::getString ('comment'));

So seemingly check for message size is failing ?
Title: Re: Ask Question White window
Post by: bytelord on November 02, 2012, 11:41:18 AM
ok, tis seems that you haven't enabled mbstring in PHP.

Please compile your apache with mbstring enabled, is a very common usage library

So, its a PHP issue after all ... php version? hosting? If cpanel used (with WHM) run easyapache and compile apache again with mbstring enabled ... search on google for how you could do that because i don't know your environment.

Regards
Title: Re: Ask Question White window
Post by: apeltoma on November 02, 2012, 11:53:26 AM

PHP is from Fedora package.
php-common-5.3.17-2.fc16

And yes using phpinfo i cannot see mbstring in there.
I don't know if it should show ?
Title: Re: Ask Question White window
Post by: bytelord on November 02, 2012, 11:58:13 AM
ok, please enable them :)

open a terminal and run

A: % sudo yum install php-mbstring

or

yum install php-mbstring

Restart apache after ... :)

This is a linux thing i suppose not vm or joomla ... heh
btw, if you don't find the package run yum search mbstring

Regards
Title: Re: Ask Question White window
Post by: apeltoma on November 02, 2012, 12:02:39 PM
Thanks for instruction.
I googled that with fedora and found these instructions:

yum search mbstring
Finds real package name.

yum install <package name>

After that i restarted apache and things started working.
Case closed.

Thanks for Help.
Aleksi
Title: Re: Ask Question White window
Post by: bytelord on November 02, 2012, 12:04:34 PM
nice :)

Make sure that "box" is secured ... :)

Regards