koken-app's People
koken-app's Issues
Password reset
When restoring password, both the first mail with the link and then the second with the restored password contains the equal sign = here and there. Even in the middle of the link and password.
List koken plug-ins that are not working on php 8.1
[PHP8.0] Can't create nested albums
Security: system details are publicly accessible
- Show only all system details when user is logged in
Preparing for CI4: Public Folder setup
As we need to migrate to CI4 we need to apply a Public Folder setup where the app is one level below the front controllers. Normally there is only one frontcontroller index.php, in Koken we have several..
With the new app/file structure Koken will be more secure.
Albums of album_type = 1 not displaying content
A Koken web-site that had content nested under headings was working under the last official Koken release and is not working correctly with patch 1.2.0. Specifically, collections with album_type = 1 do not display content in koken/admin/library:
Nor on the web-site:
I checked the database using MySQL and those albums that used to be there were still listed:
I carried out a test, adding a new "set" (album_type = 2) with a new "album" (album_type = 0) nested within it, see:
When I clicked on the new album "0409" all the missing content re-appeared, see:
When I clicked on one of the album_type = 1 items (either "Portfolio" or "Assignments") all the content that should be listed under those headings disappeared again.
My web-site worked fine with the last patch I downloaded from you on 6 August 2022 (1.1.3) and stopped working when my web host upgraded from PHP 7.4 to 8.1.
Action taken by me:
- Followed instructions to upgrade to 1.2.0. (no change).
- Cleared all browser history and caches (no change).
- Tried a different browser (no change).
- Deleted the entire koken/storage/cache folder and cleared browser history again (no change).
- Upgraded web host from PHP 8.1 to 8.3 and cleared all histories and caches (no change).
I am enormously appreciative of the work done to keep Koken alive and would be hugely grateful for a fix for this, too. I hope I have provided enough for you to replicate it. If you have questions, please don't hesitate to ask.
Guy Montagu-Pollock.
Nested Sets
Error
Uncaught Error: Call to a member function num_rows()
/app/application/libraries/Datamapper.php(2238)
Reproduce:
Create nested album set(s)
Tested on php7.4 and 8.0
Vimeo plugin - No Thumbnail
The Vimeo plugin works but there's no thumbnail, only the loading icon. Both on backend and frontend. It works to click it though, it will show and play the video. It's been a while since I used the Vimeo plugin, so I can't remember if I had to do something to make a thumbnail.
Make "default" koken themes compatible with php 8.1
Some users have reported problems with using the boolevard theme.
- Research
- List problematic themes
Bug but not sure if it's my fault or a problem with this code...
Hi,
I recently used this repo to upgrade Koken as I wanted to move to PHP 8.1.
I've just completed moving it to sit behind nginx.
I'm only using the API, but looking at the admin interface and the public pages for Koken and I seem to have the same issues there as well. Namely,
location ~ "^/storage/cache/images(/(([0-9]{3}/[0-9]{3})|custom)/.*)$" {
expires max;
etag off;
try_files $uri /i.php?path=$1;
}
This nginx block is no longer being hit, looking at the API image urls and indeed the images being served in the site, they're all coming from i.php?/<paths>/<name>.jpg
The <domain>/storage/cache/images/etc
urls all work correctly and nginx serves them with no problem so for the time being I'm just rewriting the urls coming out of the API, but I also don't know why this is happening.
Do you have any suggestions as to why this might be?
Add missing install images
[PHP8.0] Errors when moving nested albums
The API Error prevents theme settings
I've done a successful Linux install:
PHP Version 8.1.13
MySQL Version 10.9.4-MariaDB
nginx/1.22.1
ImageMagick 7.1.0
FFmpeg Version 4.3.4
No matter what I do I always get the error code in api.html when I try to set a theme. I've tried all the tricks I can find on Google
I see logs like:
Koken-App/__rewrite_test/index.php" is not found (2: No such file or directory), client: 172.16.16.16, server: _, request: "GET /__rewrite_test/ HTTP/1.1", host: "mynas:8888"
Dec 22 19:39:29 mynas nginx[1201567]: 2022/12/22 18:39:29 [error] 1201567#1201567: *73394 "/poolz/Koken-App/__rewrite_test/index.php" is not found (2: No such file or directory), client: 172.16.16.16, server: _, request: "GET /__rewrite_test/ HTTP/1.1", host: "mynas:8888"
Dec 22 19:39:30 mynas nginx[1201567]: 2022/12/22 18:39:30 [error] 1201567#1201567: *73321 open() "/poolz/Koken-App/admin/undefined/installs/07a923d2ba871524e7641da96b15b8d2/updates" failed (2: No such file or directory), client: 172.16.16.25, server: _, request: "GET /admin/undefined/installs/07a923d2ba871524e7641da96b15b8d2/updates HTTP/1.1
Otherwise everything seems to work correctly, so close.... Lightroom plugin works etc.
Custom CSS does not work
hello, I have updated my koken installation. i noticed that the custom css no longer works. after entering a css code snippet, it is displayed in the preview, but after publishing, the code is displayed in a line with incorrect line breaks. so there are no more line breaks but only rn, like this:
p.descset {rntmargin-left:0px;rnttext-align: justify;rntfont-size:0.9em;rntcolor:#777777;rntwidth:75%; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2;}
Is there a solution or can I edit an other CSS file on my FTP Server?
kind regards
redactor issue in editor
Observing an issue with redactor not displaying only for choosing a block type to insert. Highlighting a word in an existing paragraph shows the redactor air bar properly.
Example of display issue:
redactor air buttons working properly on individual words:
I want to blame PHP because I cannot reproduce this under PHP 7.4; only seen under PHP 8.0.
nginx 1.18.0
koken 0.22.24
koken-app 1.1.2 applied
php 8.0.17
Uncaught DivisionByZeroError: GPS class
[Sat Mar 26 17:21:19.522139 2022] [php:error] [pid 387186] [client 172.17.0.1:57704] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/www2/app/koken/gps.php:37\nStack trace:\n#0 /home/www2/app/koken/gps.php(24): GPS->divide()\n#1 /home/www2/app/koken/gps.php(14): GPS->convert()\n#2 /home/www2/app/application/models/content.php(923): GPS->latitude()\n#3 /home/www2/app/application/models/album.php(1203): Content->to_array()\n#4 /home/www2/app/application/models/album.php(894): Album->to_array()\n#5 /home/www2/app/application/controllers/albums.php(436): Album->listing()\n#6 /home/www2/app/core/CodeIgniter.php(337): Albums->index()\n#7 /home/www2/api.php(242): require_once('...')\n#8 {main}\n thrown in /home/www2/app/koken/gps.php on line 37, referer: https://devphp8.adrienb.fr/admin/
[Sat Mar 26 17:21:26.041946 2022] [php:error] [pid 387172] [client 172.17.0.1:57760] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/www2/app/koken/gps.php:37\nStack trace:\n#0 /home/www2/app/koken/gps.php(24): GPS->divide()\n#1 /home/www2/app/koken/gps.php(14): GPS->convert()\n#2 /home/www2/app/application/models/content.php(923): GPS->latitude()\n#3 /home/www2/app/application/models/album.php(1203): Content->to_array()\n#4 /home/www2/app/application/models/album.php(894): Album->to_array()\n#5 /home/www2/app/application/controllers/albums.php(436): Album->listing()\n#6 /home/www2/app/core/CodeIgniter.php(337): Albums->index()\n#7 /home/www2/api.php(242): require_once('...')\n#8 {main}\n thrown in /home/www2/app/koken/gps.php on line 37
Can't empty trashbin php8.0
[PHP8.0] Error when uploading photos bigger than +- 8MB
Error "New content records must be accompanied by an upload."
Result: photo is not added to the panel / database
- check different environments
[PHP8.0] Error when uploading photos
Error when uploading image (or via URL). But the image uploads anyway, have to reload the page in the backend to see it there though. Or delete image cache.
Requirements?
Which is requirements?
Can anyone provide dockerfile or something?
Provide Dockerfile
Originally posted by @awesomesk1ll in #21
security: remote code execution
Hello,
I've discovered that koken has an RCE vulnerability in its code. This vuln existed in the original version, as far as I can say, and exists in your php8 compatible koken patched version.
I'm not sure where exactly is the faulty piece of code, but I can reproduce and have a POC. How can we talk safely about that without releasing a fully functional POC in the wild?
[PHP8.0] installer is not compatible with 8.0
I tried with the Installatron applications installer that my webhost provides. It has the option to install Koken. It didn't work installing on PHP 8.0. Error message below, though it seems like the messege got cut off for some reason.
Installatron
PHP 8.0
Koken 0.22.24
Error: 2022-09-16 19:15:19.67494600 FAILURE [3; /usr/local/bin/curl] http://koken3.mydomain.com/api.php [http code=500. Request: /var/installatron/cache/fetch_query_7ec475516731ce91d7aca5a1eb96afa2.part; Headers: /var/installatron/cache/fetch_qu
I'm not a member of GitHUb so can't put it in the repo.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.