Server Error 500

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #80753

I am trying to enable the multi carts. I enabled it under system -> display. When I cleck on the "Show the carts" button I get an error.

Server error
The website encountered an error while retrieving www.hmkenl.com/index.php?option=com_hika...type=cart&Itemid=133 . It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

When I enable debug in joomla I get.
Fatal error: Call to a member function get() on a non-object in /home/hmkenl/htdocs/components/com_hikashop/views/cart/view.html.php on line 281

I downloaded the latest version today and installed it. Still getting the same error.

Any ideas?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #80811

Hi,

Can you check if you have this code:

		if(empty($cart_type)){
			if (is_object( $menu )) {
				$cart_type = $menu->params->get('cart_type');
				JRequest::setVar('cart_type',$cart_type);
			}
		}
Near that line ?

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81271

Yes, that is the code I have at that line.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #81321

Hi,

Try to replace it by:

		if(!empty($menu->params) && empty($cart_type)){
			if (is_object( $menu )) {
				$cart_type = $menu->params->get('cart_type');
				JRequest::setVar('cart_type',$cart_type);
			}
		}

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81435

Xavier, I replaced the code with the new code you listed. I still get the same error. I also noticed that if I enable the wishlists when I click on "Show the wishlists" on the front end I also get this same error.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #81572

Can you try that:

		if(!empty($menu->params) && empty($cart_type)){
                        $cart_type = 'cart';
			if (is_object( $menu->params)) {
				$cart_type = $menu->params->get('cart_type');
				JRequest::setVar('cart_type',$cart_type);
			}
		}

If it still doesn't work, can you give us a ftp access ?

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #81665

That resolved part of the issue. I can now load that carts and wishlist menues. But if I select a cart or wishlist I get a new error.

The joomla debug is
Fatal error: Call to a member function get() on a non-object in /home/hmkenl/htdocs/components/com_hikashop/views/cart/view.html.php on line 49

Also when I try to create a new cart or wishlist I am unable to add products. Everything seems to work. I check the items and click OK but the products are not added.
I will PM you login information.

Thank you

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #81881

I received the access by PM, but I can't access to the FTP.
Can you check if the login/password are ok ?

PS: I tried with port 22 & 21.

Last edit: 11 years 11 months ago by Xavier.

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #82437

I checked the log in information and PM'ed you again.

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82534

I PM'ed you back.

Could you give us the code line where the error is present ?
I think that the var $this->params is empty.

Try yo add:

		$empty='';
		jimport('joomla.html.parameter');
		$this->params = new HikaParameter($empty);
Before you error.

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

  • Posts: 13
  • Thank you received: 0
11 years 11 months ago #82657

I tried adding the code and still no luck. I have corrected the ftp problem you should now be able to get log in.

Thank you.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82762

I can connect to the FTP¨, but I can't edit files. "open for write: permission denied" ;)

Can you check that ? :)

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
11 years 10 months ago #85732

I was able to connect now and corrected the code. It should work fine now.

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

  • Posts: 13
  • Thank you received: 0
11 years 10 months ago #85846

Thank you, I no longer receive the server error 500.

In testing it however I seem to have another problem. What I did was, I added items to my cart, clicked "Proceed to checkout", clicked "Convert cart in wishlist", named the cart, and clicked "Save".

I can see the wishlist on the back end but it does not have any items in it.
From the frontend when I try to view my wishlists, it is not listed.

Am I doing something wrong, or is this a bug?

Thank you.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #85988

Hi,

I'm not able to connect to you website (timeout) so I can't try it.
On my end it's working fine, I tried the same steps as explain.

Have you the latest HikaShop version ?

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

  • Posts: 13
  • Thank you received: 0
11 years 10 months ago #86006

Wow, what bad timing, my hosting company had a datacenter outage that took the site offline. It is back up now. The site says I have the latest stable version : 2.0.0

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #86318

Hi,

Have you edited the controller product ? (components/com_hikashop/controllers/product.php).
In phpMyAdmin, do you see the products in the table "#__hikashop_cart_product" ?

The parameters send in post on the product page are correct, but in the backend no products are displayed.
I think that you have edited something that should not have.

Maybe a modification when you removed the prices.

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

  • Posts: 13
  • Thank you received: 0
11 years 10 months ago #86577

I checked the file components/com_hikashop/controllers/product.php No changes have been made.

I also checked the database table #__hikashop_cart_product and I do see the products listed. cart_id 151 and 152 are wishlists and cart_id 150 and 153 are carts. All 4 show 0 items in the back end.

cart_product_id cart_id product_id cart_product_quantity cart_product_parent_id cart_product_modified cart_product_option_parent_id cart_product_wishlist_id
423 153 39406 2 0 1358760641 0 0
422 152 39439 1 0 1358521018 0 0
421 151 40807 1 0 1358520948 0 0
420 150 35526 1 0 1358500105 0 0
419 150 37082 1 0 1358500094 0 0

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #86724

Ok so in database everything is alright, it's just in the backend that the products are not displayed for the cart, so there is a request problem.
I'm not able to edit files, I can't transfer files on your ftp. (not the permission)

But the problem is certainly in the file "admin / comps / com_hikashop / views / cart / view.html.php".

It's a strange thing because we don't have other reports on this.

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

  • Posts: 13
  • Thank you received: 0
11 years 10 months ago #86825

Thank you,
I have checked the file "admin / comps / com_hikashop / views / cart / view.html.php" and it is unmodified from the original.

The file /components/com_hikashop/views/cart./ view.html.php was has been modified. But that was to resolve the Error 500.

I will PM you with all the needed login information to look at and modify the files.

Thank you again.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum