magepal / magento2-custom-shipping-rate

Create your own Custom Shipping rates for admin order or a predefined sets of shipping methods for frontend customers.
http://www.magepal.com
93 stars 32 forks source link

Issue in Installing on magento 2.2.0 #3

Closed rishabhchd19 closed 6 years ago

rishabhchd19 commented 6 years ago

The extension was working perfectly till Magento 2.1.9 but not Installing now on Magneto 2.2.0 giving a framework error not satisfiable. 2017-10-05_21-31-31

srenon commented 6 years ago

@rishabhchd19 ... I'm working on few other issues in 2.2. Will push an update soon

rishabhchd19 commented 6 years ago

Hi, any update? :)

rishabhchd19 commented 6 years ago

I installed version 1.3.0 and it is hiding the content of the entire page of Shipping Methods. After Disabling it, the page showing other shipping methods correctly.

srenon commented 6 years ago

Can you check your php/magento error log and let me know what the error is?

image

Are you doing a fresh install or upgrade from a previous version of this module?

rishabhchd19 commented 6 years ago

The previous module was not compatible with 2.2.0 so I uninstalled and update 2.1.9 to 2.2.0 and then installed fresh using composer. Let me check the error and confirm the same. Thanks

rishabhchd19 commented 6 years ago

2017-10-13_22-02-41

srenon commented 6 years ago

If you are getting a white screen that means you are getting a fatal PHP error, can you check an tell me what the error is?

Since Magento change from serializing array to JSON the error may be somewhere in https://github.com/magepal/magento2-customshippingrate/blob/master/Helper/Data.php#L19

rishabhchd19 commented 6 years ago

Yes, it'ds getting white blank screen and I am still looking for the error from the logs.

srenon commented 6 years ago

Try https://stackoverflow.com/a/34695164/1191288 (should show the error on the screen)

rishabhchd19 commented 6 years ago

will work on it and let you confirm on the same.

srenon commented 6 years ago

@rishabhchd19 ... is this still an issue?

rishabhchd19 commented 6 years ago

Hi, I was just about to comment..but didn't get time to update here. I just tried the above method you said. I didn't get clear from the log. Yes, the problem is still there. I have found that PHP version is 7.0.24 installed and any other components that have been updated for 2.2.0 are working perfectly except this one. Right now I have created cart rules and put custom rate there for specific groups. It would be really good if worked on 2.2.0.

Willamin commented 6 years ago

I just ran into the shipping methods blank screen problem. The error message that gets logged to var/log/system.log upon visiting the shipping methods configuration is

main.CRITICAL: Unable to unserialize value. [] []
srenon commented 6 years ago

@Willamin ...

  1. Did you upgrade Magento recently?

    1. What version of this extension are you using?
Willamin commented 6 years ago

Yes, I've recently upgraded Magento but that was before I installed this extension. Everything worked fine after upgrading Magento.

I'm using version 1.3.0 of this extension. I'm using PHP 7.1.11. I'm using Magento 2.2.1.

Willamin commented 6 years ago

Update: I set the config value (carriers/customshippingrate/shipping_type) manually using n98-magerun2 to what I had in development and now everything works fine. It looks like there's a default configuration set in etc/config.xml, but that didn't get saved in the database when I installed the module. Here's what I set the config value to:

{"_1511907270182_182":{"code":"custom","title":"Shipping","price":"1000.00"}}
rishabhchd19 commented 6 years ago

What can I do in my case? I was getting the same problem but using Php ver 7.0.24 and magento 2.2.1