syntax error on live site
-
Hi Ewout,
I’m experiencing some strange behavior on my live site, which are really not making sense to me. Perhaps you can point me in the right direction. The local site with the same settings is however working like a charm. Looking at the system status on the live site, “I’m green” everywhere but not for GMagic or iMagic.
On the live site, I can’t produce pdf invoices or packing slips in the invoices view of woocommerce pressing the corresponding button. I get a blank screen without content. Using the filter to print out the html used by the pdf parser is giving me the same behavior. However I get an invoice number produced, but woocommerce doesn’t give me the pdf action invoice button under my “account”.
The error I get in the log of the live site is making no sense to me, since I get a PHP Parse error: syntax error, unexpected ‘[‘, expecting ‘,’ or ‘;’ in xxxx/woocommerce/pdf/Aquatropica/invoice.php on line 107, referer: xxxx/wp-admin/edit.php?post_type=shop_order
Line 107 of the file is echo $wpo_wcpdf->get_order_subtotal()[‘value’];
Did you have this before or could you give me some hint on this one? I’m bluffed that a local site works fine but the same file gives me a syntax error when live ??
Regards
Pierrehttps://www.ads-software.com/plugins/woocommerce-pdf-invoices-packing-slips/
- The topic ‘syntax error on live site’ is closed to new replies.