listings page 2 and up
Brought to you by:
rizzo,
wendall911
hi again,
I now have more listings so that there are two pages
with listings in the admin menu of phpwslistings.
The problem is that I can create new entries but they
are not displayed when i click on page 2. ( I get a blank
page with "no articles found")
any idea?
thx in advance
andy
Logged In: YES
user_id=879418
phpws 0.9.3-2
phpwslistings 0.3.0
Logged In: YES
user_id=879418
I did a complete new install with the latest 0.3.1 release
and the error appears again. manage listings does NOT show
more than 20 listings, when clicking on page 2 ---> "No
listings found!" appears altough i created 24 listings...
a bug?
best wishes,
andy
Logged In: YES
user_id=879418
hi,
I think this is a bug in phpws 0.3.1, above I did a mistake,
I had phpws 0.9.3-2 and phpwslistings 0.3.1 installed -> not
phpwslistings 0.3.0 (does not work)
you can reproduce by installing the phpws 0.9.3-2 core with
phpwslistings 0.3.1. You have to create more than 20
listings (I also have 3 classes, where in the first class
are more than 20 entries)
If you click on page 2 of the admin panel in listings you
will get the "no listings found" instead of your listings.
Please confirm my findings and tell me how I can fix this.
Thank you!
Regards,
Andy
Logged In: YES
user_id=879418
I'm not that fit in php, can anyone look at the code around
line 193 of ListingManager.php
line 193 seems to be the problem but I'm not sure at all:
-------------
$content .= "<center>$pageData[1]<br />$pageData[2] " .
$_SESSION["translate"]->it("Listings") . "</center><br />";
-------------
Can anyone find something not ok in here? I think there is a
problem because of $pageData[1] and $pageData[2] are both
between the " ... therefore pageData is not parsed by php
(php think that this is html????!)
please tell me what you think!
thanks
Logged In: YES
user_id=879418
small workaround:
line 180 of ListingManager.php:
replace 20 with e.g. 100 (Manage listings shows then 100
listings on one page, you can also put a higher value in there)
line 192 of ListingManager.php:
replace also 20 with 100 or with the value you used on line 180
!! Maybe this error only occurs with languages other than
English, had no time to test it yet. !!
Logged In: YES
user_id=879418
this bug is already fixed in cvs, just go there and replace
the ListingManager.php with the new one.
Thanks!