Posts

getting error on table create on database migration in laravel

your error can be something like this:-  Syntax error or access violation:1071 Specified key was too long; max key length is 767 bytes  if you facing problem in creating table using database migration in laravel then follow the steps:- Go to app -> Providers -> Edit  AppServiceProvider.php Add given below line after  use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema;      3. add this line  Schema::defaultStringLength(191);   in this given below function     public function boot()     {              } Now you can run your database migration by this command 😅 php artisan migrate

Wordpress WooCommerce Shop page contains the following hooks:

Image
woocommerce_before_main_content woocommerce_archive_description woocommerce_before_shop_loop woocommerce_before_shop_loop_item woocommerce_before_shop_loop_item_title woocommerce_shop_loop_item_title woocommerce_after_shop_loop_item_title woocommerce_after_shop_loop_item woocommerce_after_shop_loop woocommerce_after_main_content ----------------------------------------------------

How to open cPanel using WHM access.

Image
Login into your WHM Page Click on Account Information in Dashboard Click on List Accounts Now here you will see your listed website. Click on cPanel icon  on which cPanel you want to open your site.It will redirect to your site cPanel Page without login information. That's it Enjoy!!!

Opencart version 3.0.2.0 session logout issue

/Hey This is the problem detail written by someone else. ----------------------------------- I'm running my new online store on version 3.0.2.0 and the majority appears to be running smoothly however when I log out I am seeing the following; Account You have been logged off your account. It is now safe to leave the computer. Your shopping cart has been saved, the items inside it will be restored whenever you log back into your account. And then finding I can access my account (as if I was still logged in) by simply clicking on 'My Account' without entering any login information. I'm certain it shouldn't be doing that but haven't got any idea how to go about resolving the problem. Hope someone can help because it's driving my mad trying to fix it!!!! ??? Thanks everyone ;D ----------------------------------- so I found the latest version session file and add this code and problem solved File Name : system->library->session.php

Opencart Version 2.3.0.2 Order Status Update Error

Image
Hi, if you get the same message on order status update in admin <b>Fatal error</b>:  Call to a member function check() on a non-object in <b>/home/storerpg/public_html/vqmod/vqcache/vq2-catalog_model_checkout_order.php</b> on line <b>274</b><br /> and screenshot alert like this. this is the opencart code error. I solved this by changing this line in  catalog -> model -> checkout ->  order.php  SOLUTIONS:  Before Code Line:  $fraud_status_id = $this->{'model_fraud_' . $extension['code']}->check($order_info); Changed Code Line :  $fraud_status_id = $this->{'model_extension_fraud_' . $extension['code']}->check($order_info); Now it is working fine. Enjoy Fixing I did fix this code for opencart Version 2.3.0.2

Bootstrap Select dropdown option with image || thumnail

Select... Chrome Firefox IE Opera Safari Make sure you have bootstrap already installed then use this code   <link rel="stylesheet" href="https://thdoan.github.io/bootstrap-select/css/bootstrap-select.css">   <script src="https://thdoan.github.io/bootstrap-select/js/bootstrap-select.js"></script>              <select title="Select your surfboard" class="selectpicker">   <option>Select...</option>   <option data-thumbnail="https://thdoan.github.io/bootstrap-select/images/icon-chrome.png">Chrome</option>   <option data-thumbnail="https://thdoan.github.io/bootstrap-select/images/icon-firefox.png">Firefox</option>   <option data-thumbnail="https://thdoan.github.io/bootstrap-select/images/icon-ie.png">IE</option>   <option data-thumbnail="https://thdo

Opencart Version 3.x UPS shipping method error

Image
Hi, if you getting same message like me for the shipping method UPS Warning: No Shipping options are available. Please contact us for assistance! SOLUTIONS: I found the problem in UPS shipping method code was incorrect. Before Code Line:  if ($this->config->get('ups_' . strtolower($this->config->get('shipping_ups_origin')) . '_' . $code)) { Changed Code Line:   if ($this->config->get(' shipping_ ups_' . strtolower($this->config->get('shipping_ups_origin')) . '_' . $code)) { Now it is working fine. Enjoy Fixing I did fix this code for opencart Version 3.0.2.0