Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chyrp Lite "Coal" does not work under PHP 8.1 in my case #163

Closed
Torsten-K opened this issue Aug 22, 2022 · 7 comments
Closed

Chyrp Lite "Coal" does not work under PHP 8.1 in my case #163

Torsten-K opened this issue Aug 22, 2022 · 7 comments

Comments

@Torsten-K
Copy link

Torsten-K commented Aug 22, 2022

Chyrp Lite "Coal" used to work under PHP 8.0, but it does not under PHP 8.1 (standard web hosting, Apache 2.4). The following error message appears, and the page won’t load:

urlencode(): Passing null to parameter #1 ($string) of type string is deprecated

This issue is described in general on Stack Overflow, but as I am not a programmer, I cannot do the suggested fixes. At least I don’t know where in the code I could fix this. So my question is: Will there be a new Chyrp Lite version in the near future?

@xenocrat
Copy link
Owner

Hello there,

This should be fixed in the development branch. Next release is due in November, targeting PHP 8.0, 8.1, and 8.2.

@Torsten-K
Copy link
Author

Hi Daniel,

yes, the recent development version works fine on PHP 8.1. I only could not upgrade, because a database error appeared, which I cannot remember, something that a conversion of table config failed. I made a fresh install using a new database.
But don't worry, my Chyrp Lite was not in productive status, but only in the private area for testing purposes, with a few entries that I can restore from the old database.

Thank you for your excellent blog system, and if I didn't have so many posts on my two blogs running on ClassicPress, I would definitely use Chyrp Lite.

Cheers,
Torsten

@xenocrat
Copy link
Owner

Thanks for continuing to test. Feedback and bug reports are always welcome!

@Torsten-K
Copy link
Author

Another test of upgrading "Coal" to recent development version. Here are more informations:

Error
Database error: SQLSTATE[HY000]: General error: 3780 Referencing column 'fk_c_country_code' and referenced column 'pk_c_code' in foreign key constraint 'oc_t_city_ibfk_2' are incompatible.

Query string
ALTER TABLE "oc_t_city" CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci

Parameter
Array
(
)

Backtrace

  1. includes/class/Query.php in line 192
  2. includes/class/Query.php in line 116
  3. includes/class/SQL.php in line 179
  4. upgrade.php in line 504
  5. upgrade.php in line 504

@xenocrat
Copy link
Owner

Thanks. The table “oc_t_city” doesn’t belong to Chyrp Lite. A web search indicates it likely belongs to some software called “osclass”.

When you create a MySQL database for Chyrp Lite, it’s best to use it only for Chyrp Lite otherwise this kind of thing can happen.

@Torsten-K
Copy link
Author

Torsten-K commented Aug 24, 2022

Ah, okay, thanks for the information. In deed, I run different CMSs on one database, though every CMS has its own table prefix. Anyway, this time I created a new database for the fresh installation of Chyrp Lite Dev. So everything should work fine from now on.

@xenocrat
Copy link
Owner

I’m glad we resolved it! Thanks again for the detailed reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants