Peleke
1
After upgrading to Kirby 4 I have a problem with the Kirby3-Instagram Plugin by @genxbe:
Error: Undefined constant "X\DS" in /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:17
Stack trace:
#0 /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php(27): X\Instagram->__construct()
#1 {main}
Error: Undefined constant "X\DS" in file /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php on line 17
Stack trace:
1. Error->() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:17
2. X\Instagram->__construct() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php:27
How to solve it?
If you don’t want to wait for a fix, replace DS
with DIRECTORY_SEPARATOR
Peleke
3
Thanks a lot, that did the trick!
Maybe it shouldn’t have the “Kirby 4” compatible tag yet.
Peleke
4
New follow-up error message:
Whoops\Exception\ErrorException: Undefined array key "media" in /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149](http://peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149)
Stack trace:
#0 /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php(149)](http://peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php(149)): Whoops\Run->handleError(2, 'Undefined array...', '/var/www/virtua...', 149)
#1 /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/fetch.php(27)](http://peleke.de/site/plugins/kirby3-instagram/fetch.php(27)): X\Instagram->fetch()
#2 {main}
Whoops\Exception\ErrorException: Undefined array key "media" in file /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php](http://peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php) on line 149
Stack trace:
1. Whoops\Exception\ErrorException->() /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149](http://peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149)
2. Whoops\Run->handleError() /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149](http://peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149)
3. X\Instagram->fetch() /var/www/virtual/peleke7/[peleke.de/site/plugins/kirby3-instagram/fetch.php:27](http://peleke.de/site/plugins/kirby3-instagram/fetch.php:27)
Whoops\Exception\ErrorException: Undefined array key "media" in /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149
Stack trace:
#0 /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php(149): Whoops\Run->handleError(2, 'Undefined array...', '/var/www/virtua...', 149)
#1 /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php(27): X\Instagram->fetch()
#2 {main}
Whoops\Exception\ErrorException: Undefined array key "media" in file /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php on line 149
Stack trace:
1. Whoops\Exception\ErrorException->() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149
2. Whoops\Run->handleError() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/classes/Instagram.php:149
3. X\Instagram->fetch() /var/www/virtual/peleke7/peleke.de/site/plugins/kirby3-instagram/fetch.php:27
The plugin is not compatible with K4, we have removed the compatibility tag.