tractorcow-farm / silverstripe-fluent

Multi-language translate module for Silverstripe, without having to manage separate site trees.
BSD 3-Clause "New" or "Revised" License
91 stars 110 forks source link

Postgres, Fluent and History tab #665

Open wojciechmruk opened 3 years ago

wojciechmruk commented 3 years ago

Hi I am currently working on a project that uses Postgres SQL. We ran into an issue with the history tab. It just doesn't work.

I did a quick test. I installed a fresh version of SilverStripe with MySQL and Fluent - everything worked fine. When I changed my database to Postgres, the history tab stopped working.

So I assume that the problem lies somewhere between Postgres and Fluent.

Here is an excerpt from my composer.

    "php": "^7.1 || ^8",
    "silverstripe/recipe-plugin": "^1.2",
    "silverstripe/recipe-cms": "4.7.0@stable",
    "silverstripe-themes/simple": "~3.2.0",
    "silverstripe/login-forms": "4.3.0@stable",
    "silverstripe/postgresql": "2.*@dev",
    "tractorcow/silverstripe-fluent": "^4"

Thank you Wojciech

image

tractorcow commented 3 years ago

Can you diagnose any network traffic? Maybe it's throwing an error in the response.

pine3ree commented 3 years ago

I have the same issue with MySQL, MariaDB (SS4.7.3, Fluent ^5, PHP 7.1~7.3). No dev-tools console warning or error. The history area show the SS loading icon .

pine3ree commented 3 years ago

@tractorcow I can only make it work by commenty the following having condition:

https://github.com/tractorcow-farm/silverstripe-fluent/blob/973fc3a785e9338c183590416fab74b35a977147/src/Extension/FluentReadVersionsExtension.php#L40

kind regards

geekdenz commented 1 week ago

Since you seem very active on this project @emteknetnz , would you be so kind to pay attention to this?