PHP Fatal error: Can't use method return value in write context in form-billing

This topic has 7 replies, 2 voices, and was last updated 6 years, 12 months ago ago by Rose Tyler

  • Avatar: JarekN
    JarekN
    Participant
    April 24, 2017 at 07:12

    I just did the upgrade and have the following error: PHP Fatal error: Can’t use method return value in write context in form-billing.php on line 48

    I see in support that someone else had the same issue and have no idea why wouldn’t you guy put a solution so that everyone can see it? My site is down now and there is nothing I can do about it 🙁

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: JarekN
    JarekN
    Participant
    April 24, 2017 at 07:30

    I replaced that line with: <?php if ( $checkout->get_checkout_fields( ‘account’ ) ) : ?>
    which now displays the page, but the layout of the checkout page is broken, EG, First Name * then Cmopany name with no field, then Last Name, and then empty field below.

    Avatar: JarekN
    JarekN
    Participant
    April 24, 2017 at 07:39

    Found it, just needed the following in custom css:
    .woocommerce-page form .form-row-wide{
    width: 100%;
    display: inline-block;
    }

    Avatar: JarekN
    JarekN
    Participant
    April 24, 2017 at 07:51

    After adding item to cart, the Continue Shopping/Checkout popup has broken images.

    https://www.dropbox.com/s/ks2rp2ry42egjfw/addedtocart.png?dl=0

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 24, 2017 at 10:27

    Hello,

    I’ve sent the request to our developers and they say that’s will be fixed in the next theme update.

    Regards,
    Rose Tyler.

    Avatar: JarekN
    JarekN
    Participant
    April 24, 2017 at 10:30

    Is there a way for me to just update given file instead of redoing entire theme update? I have couple of things customized and it will take up too much time to redo whole theme update.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2017 at 15:24

    Hello,

    Please, update theme to the version 3.0.2. It’s available on ThemeForest.
    This version is compatible with WC 3.0.4.
    I would recommend you before uploading theme files delete “woocommerce” folder, which is located in wp-content/themes/woopress/ to avoid problems with old files.
    Don’t forget to create backup of your files and database before starting update process!
    You need to enter your purchase code to activate our new theme version and skip Setup Wizard.

    Regards,
    Rose Tyler.

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.