VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: bmw2182 on September 03, 2022, 00:17:26 AM

Title: After update - 0 - syntax error, unexpected 'int' (T_STRING), expecting variable
Post by: bmw2182 on September 03, 2022, 00:17:26 AM
HELP,

I did an update and now I can't see the webpage.  I can still login in to the backend. I went to my host and there was an issue with my last back up, so a restore is not an option.  The link to the page with the error is http://www.moshersseafoodandmeat.com/store/. Does anybody have any ideas how I can resolve this issue without completely rebuilding the website?

Joomla 3.9.8 (it says its up to date)
Virtuemart is 4.0.4

Any info would be greatly appreciated.
Title: Re: After update - 0 - syntax error, unexpected 'int' (T_STRING), expecting variable
Post by: GJC Web Design on September 03, 2022, 14:20:26 PM
rebuild definitely not needed

1st try the dev version of the soon to be released VM4.0.8  https://forum.virtuemart.net/index.php?topic=148609.msg530826#msg530826
Learn how to display the trace of the error so u know where the problem is...
https://forum.virtuemart.net/index.php?topic=117042.0
Title: Re: After update - 0 - syntax error, unexpected 'int' (T_STRING), expecting variable
Post by: bmw2182 on September 20, 2022, 22:38:36 PM
Thank you for the replies, I am just seeing them.  I have it set to receive notifications now.

I turned on the debugging and I get the following error messages

Notice: Undefined property: VirtuemartViewProduct::$categoryId in /home/seafood/public_html/store/administrator/templates/vmadmin/html/com_virtuemart/product/default.php on line 90

Notice: Undefined property: VirtuemartViewProduct::$categoryId in /home/seafood/public_html/store/administrator/templates/vmadmin/html/com_virtuemart/product/default.php on line 182

87            <?php
88
89               echo $this->lists['search_type'];
90
91               echo $this->lists['search_order'];
92
93               echo vmJsApi::jDate($this->search_date, 'search_date');
94
95               echo $this->lists['customlist'];
96
97               echo $this->lists['vendors'];
98
99            ?>



179      if( $this->categoryId ) { ?>
180
181         <th style="min-width:100px;width:5%;">
182
183            <?php echo $this->sort('pc.ordering', 'COM_VIRTUEMART_FIELDMANAGER_REORDER'); ?>
184
185            <?php echo JHtml::_('grid.order', $this->productlist); //vmCommonHTML::getSaveOrderButton( $num_rows, 'changeordering' ); ?>

I have included the code. What am I missing?
Title: Re: After update - 0 - syntax error, unexpected 'int' (T_STRING), expecting variable
Post by: GJC Web Design on September 21, 2022, 10:34:07 AM
those 2 are just php notices .. unimportant re the fatal error

you need to find the fatal.. possibly in the router.php

u don't say which version u are on now .. important!!!!