We are with Fastor template, opencart 2.3.0.2.
We have a problem when going to the first page of each category. When viewing the pages 1,2,3 and etc and then click to go to the first page we see this error:
http://prntscr.com/if7sda
I`ve checked the files and i see on line 174 this:
http://prntscr.com/if7toc
line 362 and 369:
http://prntscr.com/if7w3k
the continue of line 369:
http://prntscr.com/if7wqg
Do you have some idea what should be changed in this file to fix this error?
Warning: A non-numeric value encountered in /home/masonar1/public_html/system/storage/modification/catalog/controller/product/category.php on line 174Warning: A non-numeric value encountered in /home/masonar1/public_html/system/storage/modification/catalog/controller/product/category.php on line 362Warning: A non-numeric value encountered in /home/masonar1/public_html/system/storage/modification/catalog/controller/product/category.php on line 369Warning: A non-numeric value encountered in /home/masonar1/public_html/system/storage/modification/catalog/controller/product/category.php on line 369Warning: A non-numeric value encountered in /home/masonar1/public_html/system/storage/modification/catalog/controller/product/category.php on line 369
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I don't want to change the current fastor template because i am afraid that i will lose the changes in it. And actually will not be good because if I cant use the current look of the website no matter that I fixed this error.
http://prntscr.com/igxsww
Is it this strange url?
When its on page 2 the end of the url is:
/rings?page=2
If i click to page one the end of the url is:
/rings?page={page}
Maybe i should edit this from some opecart file... Should i?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
http://prntscr.com/igyb53
line 350:
http://prntscr.com/igybsx
line 362:
http://prntscr.com/igycb0
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
line 175: http://prntscr.com/ih7lto
line 350, 358, 362: http://prntscr.com/ih7mk2
find all instances of:
Code: Select all
{page}
Code: Select all
' . (int)$page . '
Code: Select all
' . (int)$page
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
This is the only place where i found {page}:
http://prntscr.com/ihaqa2
So i edit it from:
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page= . (int)$page . ');
Is this the right replacement? http://prntscr.com/ii9hibstraightlight wrote: ↑Tue Feb 20, 2018 6:11 pmThere was a fix on the forum for this but can't seem to find it now. In your category.php file,
find all instances of:
replace all with:Code: Select all
{page}
or:Code: Select all
' . (int)$page . '
if you see a comma right after.Code: Select all
' . (int)$page
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I`ve tried also withstraightlight wrote: ↑Fri Feb 23, 2018 8:23 pmTwo possibilities were provided on my previous reply. Your screenshot only provides one of them. The second one would be the right one.
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page=(int)$page . ');
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page= (int)$page . ');
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page= . (int)$page ');
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page= . (int)$page . ');
Code: Select all
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page= (int)$page . ');
Although, none of my solution above did indicated to code the page query like this:But it's not working.
Code: Select all
&page= . (int)$page . '
Code: Select all
&page=' . (int)$page . '
Code: Select all
&page=' . (int)$page
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Still not working... The codes caused troubles in the website page switching.straightlight wrote: ↑Sun Feb 25, 2018 2:37 amAlthough, none of my solution above did indicated to code the page query like this:But it's not working.
but rather:Code: Select all
&page= . (int)$page . '
or:Code: Select all
&page=' . (int)$page . '
As said on the top reply, it would be the second possibility (the last code portion) in this case.Code: Select all
&page=' . (int)$page
Users browsing this forum: No registered users and 26 guests