# Catalogue problem for version 6.1.1

**URL:** <https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301>\
**Category:** Troubleshooting Installation/Upgrades\
**Created:** [January 30, 2023, 6:54pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301 "2023-01-30T18:54:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichelleB](https://pressbooks.community/user_avatar/pressbooks.community/michelleb/32/789_2.png) [@MichelleB](https://pressbooks.community/u/MichelleB)\
**Post date:** [January 30, 2023, 6:54pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/1 "2023-01-30T18:54:34Z")

</div>

Hi Pressbooks community,

Since the latest upgrade our catalogue has not been populating properly.

When flipping through the pages, it populates the same list of books on all 5 pages of our catalogue. When I change the filters the list of books changes and even when there are only 2 books in the list the 1,2,3 page links at the bottom still appear. I think it’s the page numbers at the bottom of the page that are broken and just showing you the same page.

Is this a known bug, or an issue anyone else has replicated?

Thanks!

Best wishes,  
Michelle

WordPress Configuration  
Network URL: [https://openeducationalberta.ca/](https://openeducationalberta.ca/)  
Network Type: Subdirectory  
Version: 6.1.1  
Language: en\_US  
WP\_ENV: Not set  
WP\_DEBUG: Disabled  
Memory Limit: 64M

Pressbooks Configuration  
Version: 6.5.1  
Root Theme: Aldine  
Root Theme Version: 1.18.1

---

<div class="post-metadata">

**Author:** ![MichelleB](https://pressbooks.community/user_avatar/pressbooks.community/michelleb/32/789_2.png) [@MichelleB](https://pressbooks.community/u/MichelleB)\
**Post date:** [February 23, 2023, 5:44pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/2 "2023-02-23T17:44:40Z")

</div>

Hi everyone,

Just wanted to boost this. We are now updated to 6.8.0.

The problem above is still persistent, and the front page catalogue no longer generates (I’ve tried the classic reset technique with no success).

Is anyone else having a catalogue problem?

 ![Screen Shot 2023-02-23 at 10.40.10 AM](https://pressbooks.community/uploads/default/original/2X/3/3b516e92da8a44be3384b543e22c99c49b424905.png)

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 23, 2023, 6:33pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/3 "2023-02-23T18:33:31Z")

</div>

@MichelleB we released a plugin that adds a much improved catalog to Pressbooks networks: [GitHub - pressbooks/pressbooks-network-catalog: A Pressbooks plugin which provides an improved catalog for the Pressbooks Aldine theme](https://github.com/pressbooks/pressbooks-network-catalog). It works with recent versions of Pressbooks & Aldine. Have you installed this plugin? Does that fix things for you?

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 24, 2023, 9:04am UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/4 "2023-02-24T09:04:44Z")

</div>

@SteelWagstaff I tried to install the new network catalog, but I am not familiar with bedrock. The one line installation instruction " Run 'composer require pressbooks/pressbooks-network-catalog` in your project bedrock." did not enable me to install the plugin.

Is there a way to install it the classical way, by uploading the plugin to WordPress? If not, is there more info on the bedrock way of installing the plugin?

Thank you!

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 26, 2023, 9:03pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/5 "2023-02-26T21:03:10Z")

</div>

Hi @t.dumm Composer is a dependency management tool for PHP, which allows users to declare, install, and update project dependencies for PHP applications (see [Composer docs](https://getcomposer.org/doc/)). Composer runs from the [command-line](https://getcomposer.org/doc/03-cli.md) and allows users to install/autoload PHP applications found on [Packagist](https://packagist.org) (an aggregator of PHP packages).

Bedrock is a boilerplate WordPress stack maintained by a group called [Roots](https://roots.io/). Bedrock is designed to make it easier to configure production, staging, and development environments for WordPress (see [Bedrock docs](https://roots.io/docs/bedrock/master/installation/), [guide](https://roots.io/tag/bedrock/), and [Discourse forum](https://discourse.roots.io/c/bedrock/7)). Bedrock treats all 3rd party libraries as dependencies (including WordPress, Pressbooks, and any plugins/themes) and uses Composer to manage them consistently. You can use Composer with or without Bedrock. For our hosted clients, we use Bedrocks to manager the versions of all the software we deploy to various server environments.

The install instructions for the catalog plugin are basically asking you to install Composer on your server and run the composer command in the right directory to install the plugin and its required dependencies. There may be a way to install it in the ‘classical’ way, but I don’t think we support that right now. I’ll check with my some of my more knowledgeable colleagues and try to get back to you.

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 27, 2023, 9:45am UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/6 "2023-02-27T09:45:06Z")

</div>

@SteelWagstaff I tried to install with composer, but I got the error message below:

_Could not find a matching version of package pressbooks/pressbooks-network-catalog. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev)._

I checked for pressbooks-network-catalog on [https://packagist.org](https://packagist.org), but did not find an entry. But maybe I am checking the wrong way. I am really not familiar with composer. I always use the WordPress Plugins that you publish on GitHub to update.

> **[Packagist](https://packagist.org/?query=pressbooks-network-catalog)**
>
> The PHP Package Repository

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 27, 2023, 11:40pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/7 "2023-02-27T23:40:15Z")

</div>

@t.dumm We failed to register the new plugin correctly. That should be resolved now: [pressbooks/pressbooks-network-catalog - Packagist](https://packagist.org/packages/pressbooks/pressbooks-network-catalog). There’s also a method by which we can package the assets and attach them to the GitHub release for distribution the same way as pressbooks/pressbooks. We’ll work on this and try to get that working for future releases as well.

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 10:35am UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/8 "2023-02-28T10:35:29Z")

</div>

@SteelWagstaff  
Thank you. I tried to install with composer using:

_composer require pressbooks/pressbooks-network-catalog_

inside the unzipped pressbooks-network-catalog folder inside my pressbooks install  
but still got the following error:

_[InvalidArgumentException] Could not find a version of package pressbooks/pressbooks-network-catalog matching your minimum-stability (dev). Require it with an explicit version constraint allowing its desired stability._

I think I wait until a classical WordPress Plugin is available.

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 28, 2023, 4:02pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/9 "2023-02-28T16:02:50Z")

</div>

Hmmm. What version of composer are you running? Perhaps try running `composer selfupdate --2` before you run `composer require pressbooks/pressbooks-network-catalog`?

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 4:20pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/10 "2023-02-28T16:20:24Z")

</div>

@SteelWagstaff Switching from composer 1 to composer 2 brought me one step further. Now I see this error message:

Root package ‘pressbooks/pressbooks-network-catalog’ cannot require itself in its composer.json

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 28, 2023, 4:53pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/11 "2023-02-28T16:53:07Z")

</div>

@t.dumm sounds like you need to move up a directory on your server. You can delete the unzipped pressbooks-network-catalog directory/folder entirely and simply run this composer command from the plugins folder instead of the pressbooks-network-catalog folder.

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 4:56pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/12 "2023-02-28T16:56:38Z")

</div>

@SteelWagstaff If I do that, I see:

No composer.json in current directory, do you want to use the one at /var/www/html/pressbooks.delivros.ch? [Y,n]?

Shall I type Y?

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 28, 2023, 4:57pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/13 "2023-02-28T16:57:33Z")

</div>

Go for it! I think that ought to work … hard to say with certainty without being your server myself, but I’d try that, yes.

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 4:58pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/14 "2023-02-28T16:58:31Z")

</div>

@SteelWagstaff

Running composer update pressbooks/pressbooks-network-catalog  
Loading composer repositories with package information  
Updating dependencies  
Your requirements could not be resolved to an installable set of packages.

Problem 1  
- composer/installers v1.6.0 requires composer-plugin-api ^1.0 → found composer-plugin-api[2.3.0] but it does not match the constraint.  
- pressbooks/pressbooks-jacobs dev-dev requires composer/installers ~1.3 → satisfiable by composer/installers[v1.6.0].  
- pressbooks/pressbooks-jacobs is locked to version dev-dev and an update of this package was not requested.

You can also try re-running composer require with an explicit version constraint, e.g. “composer require pressbooks/pressbooks-network-catalog:\*” to figure out if any version is installable, or “composer require pressbooks/pressbooks-network-catalog:^2.1” if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 4:59pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/15 "2023-02-28T16:59:00Z")

</div>

Has anybody succeeded in installing the new catalog on a self-hosted server?

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 28, 2023, 5:02pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/16 "2023-02-28T17:02:51Z")

</div>

It looks like you have some composer dependency conflicts. You have a composer.json file on your server, probably in the `/var/www/html/pressbooks.delivros.ch` folder. This file includes some require statements – composer uses this to decide what versions of various dependencies to install on your server. If you send me a DM with the contents of this file, I may be able to assist you in resolving the conflicts. If you want to resolve this yourself, I recommend reading [Basic usage - Composer](https://getcomposer.org/doc/01-basic-usage.md) and [Debugging Composer Dependency Conflicts](https://www.mediacurrent.com/blog/debugging-composer-dependency-conflicts) (for an example of how someone can systematically work through and resolve composer conflicts)

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 5:04pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/17 "2023-02-28T17:04:32Z")

</div>

{  
“require”: {  
“pressbooks/pressbooks”: “dev-dev”,  
“pressbooks/pressbooks-book”: “dev-dev”,  
“pressbooks/pressbooks-aldine”: “dev-dev”,  
“pressbooks/pressbooks-jacobs”: “dev-dev”  
}  
}

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 28, 2023, 5:07pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/18 "2023-02-28T17:07:38Z")

</div>

Ok – in this case you’re requiring the latest dev branch of Pressbooks and three themes. If this is a production server, I’d strongly recommend switching to run the latest tagged releases for each of these. So change the require block to something like:  
{  
“require”: {  
“pressbooks/pressbooks”: “^6.8.0”,  
“pressbooks/pressbooks-book”: “^2.25.2”,  
“pressbooks/pressbooks-aldine”: “^1.18.1”,  
“pressbooks/pressbooks-jacobs”: “^1.3.0”  
}  
}

Once you’ve made these changes, you can try running something like `composer update -W`. If that works, then you can run `composer require pressbooks/pressbooks-network-catalog`

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [February 28, 2023, 5:11pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/19 "2023-02-28T17:11:39Z")

</div>

If you don’t want to edit the composer.json file on the server, you can run `composer require pressbooks/pressbooks "^6.8.0"` or `composer remove pressbooks/pressbooks` and `composer require pressbooks/pressbooks` – what this will do is remove pressbooks/pressbooks from the composer.json & composer.lock files and then require it, but without specifying the latest version of the dev branch as your preferred version. Do the same thing for each of the other dependencies and your composer requirements should be sorted out

---

<div class="post-metadata">

**Author:** ![t.dumm](https://pressbooks.community/user_avatar/pressbooks.community/t.dumm/32/134_2.png) [@t.dumm](https://pressbooks.community/u/t.dumm)\
**Post date:** [February 28, 2023, 5:11pm UTC](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301/20 "2023-02-28T17:11:42Z")

</div>

Latest Jacobs is 1.2.1. Correct?

[Next page](https://pressbooks.community/t/catalogue-problem-for-version-6-1-1/2301.md?page=2)
