Jump to content

Some parts of my store are not working after changing my Hosting!


Huzaifa
 Share

Recommended Posts

Hello.

I just changed my Hosting to Hostinger. The migration was done by them and it was succesfull. My store is working fine generally but I can't seem to do stuff such as "Save" something, change the Status of the orders, Change prices etc. Also, Everything in the front end is also working fine except the final checkout process where I get the following error: 

 

This page isn't working

idarastore.com is currently unable to handle this request.

HTTP ERROR 500.

Kindly assist.

Thanks.

Huzaifa

Link to comment
Share on other sites

Hi Huzaifa

3 minutes ago, Huzaifa said:

I just changed my Hosting to Hostinger. The migration was done by them and it was succesfull.

It sounds like it was far from successful - you should go back to them and tell them of these problems and get them to fix them - they are not CubeCart issues but are likely hosting resource or configuration issues. Non specialist companies like this are quick to take your money and not so quick or knowledgeable about issues

Link to comment
Share on other sites

On 6/3/2021 at 3:37 PM, Noodleman said:

check your php error log for warnings/errors. 

[04-Jun-2021 15:44:39 Asia/Calcutta] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/var/www/vhosts/83/241620/webspace/httpdocs/idarastore.com/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php:/home/u195200225/domains/idarastore.com/public_html/modules/plugins/SFWS_Recently_Viewed_Products:/home/u195200225/domains/idarastore.com/public_html/modules/plugins/SFWS_Related_Products:/home/u195200225/domains/idarastore.com/public_html/modules/plugins/wishlist') in /home/u195200225/domains/idarastore.com/public_html/cache/skin/8972bf0ed14ecf531dfe73d4db667e124c2dc472_0.string.php on line 18

The error on line 18 is in the path of a particular file. The plugin is using the old path of previous Hosting.

 

On 6/3/2021 at 3:39 PM, havenswift-hosting said:

Hi Huzaifa

It sounds like it was far from successful - you should go back to them and tell them of these problems and get them to fix them - they are not CubeCart issues but are likely hosting resource or configuration issues. Non specialist companies like this are quick to take your money and not so quick or knowledgeable about issues

Our online store was modded with some mods by SemperFiWebServices (can't find them now, they are inactive now).

The errors seem to be coming from their mods as they have coded the mods with old path of previous Hosting, and this new Hosting has some other paths.

Kindly assist if there is a way to solve these issues.

Link to comment
Share on other sites

6 minutes ago, Huzaifa said:

The error on line 18 is in the path of a particular file. The plugin is using the old path of previous Hosting.

Neither CubeCart core or any plugins will have hard coded paths - you can pick up a store and move hosting or even move it to a new domain.  

8 minutes ago, Huzaifa said:

Our online store was modded with some mods by SemperFiWebServices (can't find them now, they are inactive now).

That developer disappeared a while back and seems unlikely to ever come back - however, all plugins will still work.

You could try clearing cache but otherwise your best bet is to go back to your hosting support.  They know their hosting environment and they did the transfer so they *should* be best placed to look into this. 

Link to comment
Share on other sites

Posted (edited)

I concur that clearing the cache has a high probability of fixing this situation.

Please make sure this file exists:

This part is contained within CubeCart, and this file should be present:
/includes/lib/smarty/plugins/modifier.replace.php

This is the complete path including the first part
where CubeCart should be installed, according to code
in the cached skin template:
/var/www/vhosts/83/241620/webspace/httpdocs/idarastore.com/includes/lib/smarty/plugins/modifier.replace.php

This is the current location where the cached skin template is at:
/home/u195200225/domains/idarastore.com/public_html/cache/skin/8972bf0ed14ecf531dfe73d4db667e124c2dc472_0.string.php

So, the first part of the path to the file to include does not match the first part of the path where CubeCart is currently installed.

Therefore, clearing the cache will then cause Smarty to recompile the skin template, which will then contain the correct current full path to the file to include.

I will conclude that the migration erroneously included all files found in the /cache/ folder. (Should have cleared the cache before the copying.)

Edited by bsmither
Link to comment
Share on other sites

10 hours ago, havenswift-hosting said:

Neither CubeCart core or any plugins will have hard coded paths - you can pick up a store and move hosting or even move it to a new domain.  

That developer disappeared a while back and seems unlikely to ever come back - however, all plugins will still work.

You could try clearing cache but otherwise your best bet is to go back to your hosting support.  They know their hosting environment and they did the transfer so they *should* be best placed to look into this. 

Thank you for your reply.Clearing the cache solved the error 500.

The latest error is an follows: 

Jun-2021 17:51:20 Asia/Calcutta] PHP Notice: `cart_order_id` is not allowed as a key in 'CubeCart_downloads' table! in /home/u195200225/domains/idarastore.com/public_html/classes/db/database.class.php on line 900

 

Line 900 contains the following:

      } else {

       trigger_error("`$key` is not allowed as a key in '$table' table!");

      }

7 hours ago, bsmither said:

I concur that clearing the cache has a high probability of fixing this situation.

Please make sure this file exists:

This part is contained within CubeCart, and this file should be present:
/includes/lib/smarty/plugins/modifier.replace.php

This is the complete path including the first part
where CubeCart should be installed, according to code
in the cached skin template:
/var/www/vhosts/83/241620/webspace/httpdocs/idarastore.com/includes/lib/smarty/plugins/modifier.replace.php

This is the current location where the cached skin template is at:
/home/u195200225/domains/idarastore.com/public_html/cache/skin/8972bf0ed14ecf531dfe73d4db667e124c2dc472_0.string.php

So, the first part of the path to the file to include does not match the first part of the path where CubeCart is currently installed.

Therefore, clearing the cache will then cause Smarty to recompile the skin template, which will then contain the correct current full path to the file to include.

I will conclude that the migration erroneously included all files found in the /cache/ folder. (Should have cleared the cache before the copying.)

Yes it did. Error 500 is fixed now but the still some parts of the store are not operational such as changing the status of an order or saving a setting.

Link to comment
Share on other sites

Please use an external database utility (such as phpMyAdmin found as a tool in your hosted account's control panel).

Use it to verify that your database has the table 'CubeCart_downloads'.

 

Link to comment
Share on other sites

9 minutes ago, bsmither said:

Please use an external database utility (such as phpMyAdmin found as a tool in your hosted account's control panel).

Use it to verify that your database has the table 'CubeCart_downloads'.

 

Yes, it does the "D" in Download is uppercase though. I don't know if that makes any difference?

Link to comment
Share on other sites

Posted (edited)

Of any and all database table names, only of the CubeCart part -- the indicated letters must be capitalized. The rest of the table name must be lowercase. Check them all.

(Note: It probably wouldn't make a difference if the server computer were running a Windows Server operating system, where upper and lower cases can usually be ignored. For Linux, uppercase vs lowercase are two different words.)

Edited by bsmither
Link to comment
Share on other sites

8 minutes ago, bsmither said:

Of any and all database table names, only of the CubeCart part -- the indicated letters must be capitalized. The rest of the table name must be lowercase. Check them all.

(Note: It probably wouldn't make a difference if the server computer were running a Windows Server operating system, where upper and lower cases can usually be ignored. For Linux, uppercase vs lowercase are two different words.)

I am attaching the screenshot. Most of them are lowercase except some.

Screenshot_2021-06-05-06-23-24-22.jpg

Link to comment
Share on other sites

Posted (edited)

Please rename them so that:

_Downloads becomes _downloads

_Modules becomes _modules

Any other table names that have capital letters.
(Other than the C's in CubeCart)

(Note: third-party plugins may install dedicated tables into CubeCart's database. Those tables from the third-party plugins can be named whatever and however the plugin author wants to name them. That's fine because only the plugin would be accessing those tables, and the plugin knows how they are exactly spelled.)

Edited by bsmither
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...