Advertisement:

Author Topic: 2nd and more pages not displayed .only first page of ads displayed on page.  (Read 197 times)

moinuddin

  • Full Member
  • ***
  • Posts: 102
I have a website and on the profile page the pagination is not working.

Here is the link.

https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10

Does anyone knows about the solution to this problem ?

Thanks in advance

moinuddin

  • Full Member
  • ***
  • Posts: 102
Even if i click on 2nd page then again it gets to first page.


moinuddin

  • Full Member
  • ***
  • Posts: 102
here are my 2 files attached one is the user public profile page and another is header.and also made changes in loop.php for putting ads between listings.

made changes according to this link ..here is the link https://forums.osclass.org/tips-and-tricks/(tip)-ads-between-listings/


let me know if you want some more details / files to see the codes.

hope it gets solved as facing problem only in user public profile page and rest all other pages are working fine as search result getting clicked on pages and showing it ..the only problem is with user public profile where the 2nd and other pages getting clicked but it shows only first page.

my website is https://footwearwholesale.in/

and user public profile page link is https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10?iPage=2


please does anyone has solution to this problem?

thanks in advance.




cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198

moinuddin

  • Full Member
  • ***
  • Posts: 102
Thanks for the reply cartagena68,

But still the link which you sent is showing the first page.

All other pages are showing correctly except profile page so i don't think that there should have been a problem with the function.

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
no, the link show second page if you copy the full link, not click on it.
or click on this
https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10&iPage=2

moinuddin

  • Full Member
  • ***
  • Posts: 102
Yes, you are right instead of '?'... '&' should be there ...but i don't know how it has changed.

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
This is just a workaround that should work. Try the modified file attached

moinuddin

  • Full Member
  • ***
  • Posts: 102
Sure,

Will upload it and will let you know the result.

moinuddin

  • Full Member
  • ***
  • Posts: 102
hi cartagena68,

you are a genius ..it worked ..i am still wondering that how this error happened in website...but once again thank you very much.


cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
I'm glad it works, but remember that this is just a workaround, you should check why you have the problem in the first place.

moinuddin

  • Full Member
  • ***
  • Posts: 102
I think some Java script  codes (for Fb comments and likes button on the public profile page must have created the problem)..i'll let you know once i find the error..thanks again for the solution.