Getting a Strange Error

Permalink Browser Info Environment
Using the pagination on this block and the first page (1-10) displays fine but the second and third throw an error...

An unexpected error occurred.
Page "2" does not exist. The currentPage must be inferior to "1"

Am I doing something wrong?

Type: Pre-Sale
Status: In Progress
Chrouglas
View Replies:
mesuva replied on at Permalink Reply
mesuva
Hi there,

I'm having trouble replicating this bug on a 5.7.3.1 install, with version 1.0.7 of the package.

Are you using any advanced permissions to control access to the files by any chance?
Are there other parameters on the URL when you try paginating?

Can you supply some screenshots of the block configuration and the result page (including the URL)?

You're welcome to email my directly at ryan@mesuva.com.au

-Ryan
Chrouglas replied on at Permalink Reply
Chrouglas
I know this is long forgotten but I think I figured it out or at least what is causing it. The error occurs when there is more than one block that uses pagination on a page. I am currently having the same issue with ProBlog List Block and ProEvents List Block on the same page. I am not sure how to fix this but maybe greater minds than mine can take this info and run with it. I currently have a support ticket submitted for this error (and others within the ProSomething packages) but I have not heard back.

Cheers,
Chris
mesuva replied on at Permalink Reply
mesuva
I know what you are talking with this.

The pagination within this block is handled by a pagination function built into concrete5, it's not custom written, so there's not much I can do to adjust it.

I seem to recall there being some discussion about making it block specific - are you running a recent c5 version?
Chrouglas replied on at Permalink Reply
Chrouglas
Yup. Even as I was writing that post I was thinking this is all very familiar. I went back in my emails and found the thread. So it looks like the problem occurs when ANY two blocks that utilize the pagination feature (even if it is only turn on in one block and not the other) are on the same page.

Using 5.7.5.9.

Was there any movement on making this change in the core as was discussed in your pull request?
Chrouglas replied on at Permalink Reply
Chrouglas
So i think the change you proposed was implemented for the file list and it no longer conflicts with page lists. But... creating a unique pagination for a file list however also has its faults… while it doesn’t conflict with the page lists, if you wanted more than one file list on a page, clicking page 2 on one file list block’s pagination changes the output for both. Even if the second one has pagination turned off.

What happened to the discussion about making the pagination function block id specific? that seems like the solution (though I wouldnt be able to do it to save my life)

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.3.1
Version Installed - 5.7.3.1
Database Version - 20150109000000

# concrete5 Packages
Deluxe Customizable Twitter Feed (0.9.3), List files from set (1.0.7), Location Finder (1.0), Login Block (0.9.3), Page Redirect (2.0), Page Selector Attribute (2.0), ProEvents (2.1.2).

# concrete5 Overrides
blocks/footer_block, blocks/faq, blocks/horizontal_placeholder, blocks/page_head, blocks/page_list, blocks/percentage_highlight, blocks/find_greenhouse, blocks/column_fixer, blocks/super_video_block, blocks/news_rotator, blocks/call_to_action, blocks/autonav, blocks/photo_rotator, blocks/form, blocks/quote_rotator, blocks/home_super_block, languages/ru_RU, languages/ja_JP, languages/sl_SI, languages/sv_SE, languages/tr_TR, languages/nl_NL, languages/it_IT, languages/da_DK, languages/de_DE, languages/fi_FI, languages/el_GR, languages/fr_FR, single_pages/login.php, themes/greenhouse

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache/2.2.22

# Server API
cgi-fcgi

# PHP Version
5.3.29

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 99M
post_max_size - 20M
safe_mode - Off
safe_mode_exec_dir - /usr/local/php/bin
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 20M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.