Internal Server Error

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9622

Hi, None of my orders have been able to pay via Paypal as the system crashes with the below message


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, This email address is being protected from spambots. You need JavaScript enabled to view it. and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



Apache/2 Server at www.mohairbearmakingsupplies.co.uk Port 80

This is from my sever error log, not sure if it points to the error?

[Mon Feb 28 18:34:15 2011] [error] [client 88.96.34.246] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/sites/mohairbearmakingsupplies.co.uk/public_html/plugins/hikashoppayment/paypal_end.php on line 25, referer: www.mohairbearmakingsupplies.co.uk/index...l=checkout&Itemid=25

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9632

Since you get that warning, it means that hikashop goes to the end of the process since that code is near the end of the execution of hikashop.

But it was working before right ? Did you change something ? Added an extension or a plugin which might cause the problem ?

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9633

Hi, don't think I have changed anything that would have caused it, I have installed a few plug ins though, I will uninstall them and try that.

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9635

Hi, I have uninstalled the plugins and it still does not work? I have now taken the site off line as I have some very irate customers.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9638

Well, an internal server error can happen for nearly anything...
It could be because the page uses too much resources or because you reached an email sending limit, or because a bug somewhere, in hikashop but it could also be in something else on your website which interfere, etc.

It's impossible to say more without more information. Could you ask your hosting company if they have more logs ? Like a fatal error or something ?

Maybe updating hikashop might help but if you didn't had the problem before then it should not be in hikashop...

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9720

Still cannot get it to work, uninstalled the plugins, updated etc.

The common error message from my server is:

Mon Feb 28 18:34:15 2011] [error] [client 88.96.34.246] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/sites/mohairbearmakingsupplies.co.uk/public_html/plugins/hikashoppayment/paypal_end.php on line 25, referer: www.mohairbearmakingsupplies.co.uk/index...eckout&Itemid=25


this is the file can you see anything wrong?

<?php
/**
* @package HikaShop for Joomla!
* @version 1.4.5
* @author hikashop.com
* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="hikashop_paypal_end" id="hikashop_paypal_end">
<span id="hikashop_paypal_end_message" class="hikashop_paypal_end_message">
<?php echo JText::_('PLEASE_WAIT_BEFORE_REDIRECTION_TO_PAYPAL').'<br/>'. JText::_('CLICK_ON_BUTTON_IF_NOT_REDIRECTED');?>
</span>
<span id="hikashop_paypal_end_spinner" class="hikashop_paypal_end_spinner">
<img src="<?php echo HIKASHOP_IMAGES.'spinner.gif';?>" />
</span>
<br/>
<form id="hikashop_paypal_form" name="hikashop_paypal_form" action="<?php echo $method->payment_params->url;?>" method="post">
<div id="hikashop_paypal_end_image" class="hikashop_paypal_end_image">
<input id="hikashop_paypal_button" type="submit" value="" name="" alt="Click to pay with PayPal - it is fast, free and secure!" />
</div>
<?php
foreach( $vars as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';
}
$doc =& JFactory::getDocument();
$doc->addScriptDeclaration("do_nothing( function() {document.getElementById('hikashop_paypal_form').submit();});");
JRequest::setVar('noform',1);
?>
</form>
</div>

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9733

That warning is just a warning and shouldn't cause the problem. You can easily revmoe it by changing the line:
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';

to:

if(!is_array($value)) echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';

But I doubt that it will solve your problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum