Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2020-08-10 08:06:29

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,416
Website

Re: [Solved] Pagination problem

Hi Yiannis.
Thank you lot for your reply.
With the help of the wet_haystack plugin: on which column do you apply a reindexation (I tried first to use phpMyAdmin to make some tables optimisation but without any success)?

P.S. don’t worry with my website (and all other): I’m encuring many host problems (after the compagny hab been sold); I project to change the provider but I had no time for the moment…


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#12 2020-08-10 09:34:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,270
Website

Re: [Solved] Pagination problem

Hi Patrick,
When I did it, I just left the default columns as initially selected by haystack.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#13 2020-08-10 12:05:44

etc
Developer
Registered: 2010-11-11
Posts: 3,869
Website

Re: [Solved] Pagination problem

Pat64 wrote #325270:

I encounter a problem with my pagination which display 2 exceed blank pages:

Hi Patrick,

I don’t remember exactly why, but in 4.8 the meaning of showalways has been slightly changed: not ‘show even if there is no such page’, but ‘show even if the link is already shown by other tag’. I you need to restore the pre-4.8 behaviour, use <txp:else />:

...
<li class="inline"><txp:older rel="next" shift showalways>
    <span aria-label="Go to last page" class="btn trans #f9f-bg">Last Page</span>
<txp:else />
    <span aria-label="Go to last page" class="btn trans #f9f-bg">Last Page</span>
</txp:older></li>
...

Offline

#14 2020-08-10 13:14:10

etc
Developer
Registered: 2010-11-11
Posts: 3,869
Website

Re: [Solved] Pagination problem

Though the first/last page should always exist… looks buggy :-/

Offline

#15 2020-08-20 09:32:50

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,416
Website

Re: [Solved] Pagination problem

This message is for Devs.

After many days looking for a solution, I discover the pagination code (see above) works like a charme on my local server but with excessive blank pages on my server in production (see these problematic pages: https://editions-du-26-octobre.com/occasions/).

So, here is my diagnostic profile (local MAMP server):

Textpattern version: 4.8.2 (57f24adaea163a68678fa3f68a5cc937)
Last update: 2020-07-31 12:00:57/2020-07-29 21:19:27
Textpattern path: C:\MAMP\htdocs\editionsdu26octobre\textpattern
Article URL pattern: section_title
Production status: debug
Temporary directory path: C:\MAMP\htdocs\editionsdu26octobre\textpattern\tmp
PHP version: 7.4.1
GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG.
Server timezone: UTC
Server local time: 2020-08-20 09:25:08
Daylight Saving Time enabled?: 1
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): Europe/Paris (3600)
MySQL: 5.7.24 (MySQL Community Server (GPL)) 
Database server time: 2020-08-20 11:25:08
Database server time offset: 3 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: French_France.1252
Site / Admin language: fr / fr
Web server: Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2h mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.4.1 mod_perl/2.0.8 Perl/v5.16.3
Apache version: Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2h mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.4.1 mod_perl/2.0.8 Perl/v5.16.3
PHP server API: apache2handler
RFC 2616 headers: 
Server OS: Windows NT 6.2
Admin-side theme: hive 4.8.2
Active plugins: 
	abc_images_upload-0.1
	com_article_image-0.1.1
	com_connect-4.6.0
	etc_pagination-0.5.0
	ext_com_connect_verify-0.1
	glz_custom_fields-2.0 beta
	ied_plugin_composer-1.2.1
	pap_comconnect-0.1.2
	pat_speeder-1.1.2
	rah_wrach-0.4.1
	rss_admin_db_manager-4.5.1
	smd_thumbnail-0.5.3
	wet_haystack-0.6
	yab_cf_article_list-0.2

Pre-flight check: 
------------------------

There was a problem connecting to the Textpattern update server. Please try again later.
------------------------

.htaccess file contents: 
------------------------
# BEGIN Textpattern

#DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Enable the `FollowSymLinks` option below if it isn't already.
    #Options +FollowSymlinks

    #RewriteBase /relative/web/path/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]

    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*) index.php

    RewriteCond %{HTTP:Authorization}  !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>

# For additional Apache-compatible web server configuration settings to enhance
# site performance and security, we recommend:
# https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess

# END Textpattern

------------------------

And this is the live server profile:

Textpattern version: 4.8.2 (b6e7a157e4f6a6eb0aeb62dca53f4e00)
Last update: 2020-07-30 05:16:14/2020-07-30 05:13:09
Textpattern path: __TXP-ROOT/textpattern
Article URL pattern: section_title
Production status: live
Temporary directory path: __TXP-ROOT/textpattern/tmp
PHP version: 7.4.9
GD Graphics Library: 2.2.5; Supported formats: GIF, JPEG, PNG, WebP.
Server timezone: Europe/Paris
Server local time: 2020-08-20 11:29:38
Daylight Saving Time enabled?: 1
Automatically adjust Daylight Saving Time setting?: 1
Time zone (GMT offset in seconds): Europe/Paris (3600)
MySQL: 5.5.5-10.3.24-MariaDB (MariaDB Server) 
Database server time: 2020-08-20 11:29:38
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: fr_FR.UTF-8
Site / Admin language: fr / fr
Web server: Apache
PHP server API: litespeed
RFC 2616 headers: 
Server OS: Linux 4.18.0-147.3.1.el7h.lve.1.x86_64
Admin-side theme: hive 4.8.2
Active plugins: 
	abc_images_upload-0.1
	com_article_image-0.1.1
	com_connect-4.6.0
	ext_com_connect_verify-0.1
	glz_custom_fields-2.0 beta
	pap_comconnect-0.1.2
	pat_speeder-1.1.2
	rah_wrach-0.4.1
	rss_admin_db_manager-4.5.1
	smd_thumbnail-0.5.3
	wet_haystack-0.6
	wet_textfilter_markdown-0.7

.htaccess file contents: 
------------------------
# o2switch pagespeed start / DO NOT REMOVE OR EDIT
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters combine_css,recompress_images,rewrite_javascript,insert_dns_prefetch
</IfModule>
# o2switch pagespeed end / DO NOT REMOVE OR EDIT
# BEGIN Textpattern

#DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Enable the `FollowSymLinks` option below if it isn't already.
    #Options +FollowSymlinks

	RewriteCond %{HTTP_HOST} ^boar5360.odns.fr$ [OR]
	RewriteCond %{HTTP_HOST} ^www.boar5360.odns.fr$
	RewriteRule (.*)$ https://editions-du-26-octobre.com/$1 [R=301,L]
	RewriteRule ^default/? / [R=301,L]

    RewriteBase /

	RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]

    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*) index.php

    RewriteCond %{HTTP:Authorization}  !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
	##Header set Strict-Transport-Security “max-age=10886400; includeSubDomains; preload”
</IfModule>

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>

# For additional Apache-compatible web server configuration settings to enhance
# site performance and security, we recommend:
# https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess

# END Textpattern
RewriteCond %{HTTP_HOST} ^26octobre\.com\,26octobrecom_boar5360\.odns\.fr$ [OR]
RewriteCond %{HTTP_HOST} ^www\.26octobre\.com\,26octobrecom_boar5360\.odns\.fr$
RewriteRule ^/?$ "https\:\/\/editions\-du\-26\-octobre\.com\/" [R=301,L]



------------------------

Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#16 2020-08-22 04:53:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,270
Website

Re: [Solved] Pagination problem

Hey Patrick,

Did you solve this one?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#17 2020-08-22 06:22:49

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,416
Website

Re: [Solved] Pagination problem

No… (see here: https://editions-du-26-octobre.com/occasions/?pg=10)

Thank you for your interest Yiannis.

Last edited by Pat64 (2020-08-22 06:38:33)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#18 2020-08-22 07:21:28

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,270
Website

Re: [Solved] Pagination problem

Until somebody with more knowledge comes in, could you try if this works for you?

> Edit. I wish I could read french. I love some of the titles.

Last edited by colak (2020-08-22 07:22:41)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#19 2020-08-22 09:07:19

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,416
Website

Re: [Solved] Pagination problem

I tried your solution without any good results (that’s extrainly strange)…

colak wrote #325513:

I wish I could read french. I love some of the titles.

The website owner do some french authors reprints (mainly XIX century) rares and sometimes forgotten.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#20 2020-08-22 09:19:26

etc
Developer
Registered: 2010-11-11
Posts: 3,869
Website

Re: [Solved] Pagination problem

A wrong number of pages generally means it is set not where you expect it: by some other <txp:article /> tag or with wrong attributes (time?). We should add a debug trace to see where the number of pages is defined.

Offline

Board footer

Powered by FluxBB