Untitled Document
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Unable to connect ShipRush with Magento2 store

  1. #1
    I just upgraded from a Magento1.9.x to a 2.1.6 platform. I have used SR for several years on the old store, but am now able to connect to the M2 store. When I try to connect my store I get the error: The URL provided does not seem to connect to an ecommerce system (or perhaps the web store is not configured properly). Please check the URL and configuration for this web store. ERROR 33836A: (Shipping API not found at https://store.best-alzheimers-produc...ngZMagento.php).

    SR can't find its API. When I try to connect directly to https://store.best-alzheimers-produc...ngZMagento.php I get:
    Notice: Undefined variable: shiprush_eventManager in /home/storealz/public_html/ShippingZMagento.php on line 1174
    SHIPPINGZCLASSES Version: 4.0.10.7497 Error Type: 2 File: /home/storealz/public_html/ShippingZClasses.php Line: 1698 Message: Cannot modify header information - headers already sent by (output started at /home/storealz/public_html/ShippingZMagento.php:1174) Trace: ShippingZ_Exception_Error_Handler("2", "Cannot modify header information - headers already sent by (outp...", "/home/storealz/public_html/ShippingZClasses.php", "1698", Array[1]) header("Pragma: public") ShippingZGenericShoppingCart.Display_XML_Output(Ob ject:XMLWriter) ShippingZGenericShoppingCart.SetXmlError("1", "Shipping plugin connection successful! Token required for additi...") ShippingZGenericShoppingCart.ExecuteCommand()

    So the SR connection wizard is finding my website and the SR plugin thereon (in the ShippingZMagento.php file), but the SR API is not "defined" so it can't open and it can't connect.

    This is line 1174 in the ShippingZMagento.php file: $this->_eventManager = $shiprush_eventManager;

    and here is the code that preceeds line 1174 (it starts at line 1161):

    class Magentoapp
    extends \Magento\Framework\App\Http
    implements \Magento\Framework\AppInterface
    {
    protected $_objectManager;

    public $shiprush_eventManager;

    public function __construct(\Magento\Framework\ObjectManagerInterf ace $objectManager)
    {
    $this->_objectManager = $objectManager;
    if(stristr(PHP_OS, 'LINUX'))
    {
    $this->_eventManager = $shiprush_eventManager;
    }

    }

    I do not know php programming and have no idea what this means, other than it seems not to be working. Does anyone see a problem with this code, or have any other idea why my store and ShipRush are unable to connect?

    Thank you,

    John

  2. #2

    Join Date
    Apr 2004
    Posts
    16,169
    SYSOPS is offline
    Looks like you made contact with us yesterday regarding this. We have Case 59982 open to review the issue and resolve in the php code. We should have a fix for this by Monday or Tuesday.

    Thank you,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  3. #3
    I followed Sarah's instruction - loaded the ZMagento file onto my server root, changed the version number on the other three files and loaded them as well. When I try to connect I get the same error:

    Sorry, but 7 min ago we could not connect to this Web Store. So far, we have not been able to connect to this Web Store. Please Edit this Web Store, check settings, and check the help link.
    Next order retrieval in about 4 min

    and

    (Today, 06:25 PM) Error: Authentication failed. Please open file "ShippingZSettings.php" and set the SHIPPING_ACCESS_TOKEN to a random string of letters and numbers,at least 12 characters long.

    I have, I think, a 31 character long key and I checked that the one on the php file matches the one in the wizard.

    I'll try this process again tomorrow but I am confident, even in my present state, that I did things right...

    John

  4. #4
    Hi SYSOPS

    This is the message (same as before) when trying to connect ShipRush to my Magento2 eCommerce system via ShipRush's connection wizard:

    The URL provided does not seem to connect to an ecommerce system (or perhaps the web store is not configured properly). Please check the URL and configuration for this web store. ERROR 33836A: (Shipping API not found at https://store.best-alzheimers-produc...ngZMagento.php).

    When I open https://store.best-alzheimers-produc...gZSettings.php in a browser, the browser returns:

    Notice: Undefined variable: shiprush_eventManager in /home/storealz/public_html/ShippingZMagento.php on line 1174
    SHIPPINGZCLASSES Version: 4.0.10.7497 Error Type: 2 File: /home/storealz/public_html/ShippingZClasses.php Line: 1698 Message: Cannot modify header information - headers already sent by (output started at /home/storealz/public_html/ShippingZMagento.php:1174) Trace: ShippingZ_Exception_Error_Handler("2", "Cannot modify header information - headers already sent by (outp...", "/home/storealz/public_html/ShippingZClasses.php", "1698", Array[1]) header("Pragma: public") ShippingZGenericShoppingCart.Display_XML_Output(Ob ject:XMLWriter) ShippingZGenericShoppingCart.SetXmlError("1", "Shipping plugin connection successful! Token required for additi...") ShippingZGenericShoppingCart.ExecuteCommand()

    I know that the four .php files are in my root directory; the Magento.php is the new one I received on Friday, and the others 3 have been altered to match the version number (4.0.10.7497). I have reconfigured all of this, including the key, just to check myself. Same result each time.

    The fact that I cannot connect my store with MailChimp integration (it indicates it is synching but makes no progress) makes me think the part of the first message -"perhaps the web store is not configured properly" - may be the case.

    I can think of no other information to provide regarding this case - if there is please notify me as soon as possible. I can supply screen captures if needed.

    Thank you

  5. #5
    At a quick level, we see this:

    File version mismatch
    ShippingZClasses.php [4.0.10.7497]
    ShippingZMagento.php [4.0.10.6287]
    ShippingZMessages.php [4.0.10.7497]
    Please, make sure all of the above files are same version.

    The kit has been updated (good!) but the ShippingZMagento.php file was missed (not updated). Get it to the same version, for the net step.
    -----------------------------------
    Blog: http://forums.zfirm.com/blog.php
    YouTube: http://youtube.com/shiprush
    Knowledge Base: http://shiprush.com/kb
    Reply With Quote

  6. #6
    I attached a screenshot showing the 4 ShipRush files in my root directory. This I did yesterday. I opened each of the files from my root so that I would be sure each file was marked v.4.0.10.7497. When I saw your latest post I went back and opened the ShippingZMagento.php file from my root and it is the wrong version...

    I don't know how this happens. Well, easy fix right. I opened the file Sarah sent on Friday -- and it is also the wrong version 4.0.10.6287. I know that is not what she sent originally. I don't know how that happened! I did find the Magento.php file in my trash and so reloaded that to my server. Same ERROR 33836A.I will have Sarah send me the update when she gets in and try again...
    Attached Images  

  7. #7
    I loaded the new files Sarah sent onto my server and then checked the version; they are all 4.0.10.7552, but SR still fails to connect. I considered there might be a conflict with my theme, so stepped back to a Magento default theme. That did no good. My next step is to revert to my M1.9 store. This is only one of three major problems I am experiencing.

    Thanks, and I'll keep you updated on progress, if there is any.

  8. #8

    Join Date
    Apr 2004
    Posts
    16,169
    SYSOPS is offline
    Sorry for the hassles here.

    Let's try this one more time.

    I've attached the new php file. Save it and edit this line: define("SHIPPINGZMAGENTO_VERSION", to match your existing version
    Update on website

    Please let me know when that's been done and I can review if the error persists.



    Thank you,
    SYSOPS
    Attached Files
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  9. #9
    Nope. Same error in the wizard; but when I open https://store.best-alzheimers-produc...ngZMagento.php I get something different:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    <Code>1</Code>
    <Description>
    Shipping plugin connection successful! Token required for additional access.
    </Description>
    <Version>4.0.10.7552</Version>
    </Error>

    I checked the token and the one in the wizard matches the one on the settings file.

    There may be something else going on. Over the weekend the main menu disappeared from my store; not all at once, a little at a time, though it may have only appeared that way. Now today I lost my checkout. I didn't see it until now, a customer then someone else in the office said it didn't work. I just looked, on my computer, for the first time. It started out looking right, but the shopping cart would only open one time. I went into the shipping page, then back out to change the cart, then the cart (icon) disappeared and I was unable to get to the shipping page again.

    My store is eating itself.

    But this is not your concern. It may be a issue with the theme. I will contact that developer tonight. She is in Asia I believe, so the time difference can make it hard to get things done.

  10. #10

    Join Date
    Apr 2004
    Posts
    16,169
    SYSOPS is offline
    I'm not seeing this error now:
    Undefined variable: shiprush_eventManager in /home/storealz/public_html/ShippingZMagento.php on line 1174

    I do see this when I try and ping the php file with the proper access token:
    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 92 bytes) in /home/storealz/public_html/vendor/magento/framework/Model/ResourceModel/Db/VersionControl/Snapshot.php on line 46

    All we are trying to do is ping and validate the php file, so we aren't using 536MB for a simple ping. Looks as though something else is still afoot on the site. You could try increasing your memory for the site, as discussed here:
    https://magento.stackexchange.com/qu...ytes-exhausted

    Let us know if anything else changes or is modified and we can review further.

    Thank you,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •