Keyword

PHP8 - getting blank page when saving

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
2 years 9 months ago #179864 by Thomas Thrane
PHP8 - getting blank page when saving was created by Thomas Thrane
I have set er site to use PHP8, but when I hit Save on K2 item, all I get is a blank page and nothing is saved.
The source code on that page is only this:
    <div id="k2AdminContainer" class="K2AdminViewItem isJ30 isEditForm">
        <div id="k2Sidebar" style="visibility:hidden;">
            <button aria-expanded="false" aria-controls="menu" id="k2ui-menu-control">&#8801;</button>
            
            <ul class="k2-disabled">
                <li>
                    <span>Items</span>
                </li>
                <li>
                    <span>Categories</span>
                </li>
            
                <li>
                    <span>Tags</span>
                </li>
                
                <li>
                    <span>Comments</span>
                </li>
            
                <li>
                    <span>Users</span>
                </li>
                <li>
                    <span>User groups</span>
                </li>
                <li>
                    <span>Extra fields</span>
                </li>
                <li>
                    <span>Extra field groups</span>
                </li>
                
                <li>
                    <span>Media manager</span>
                </li>
                <li>
                    <span>Information</span>
                </li>
            </ul>
            
            <div id="k2Copyrights">
                <a target="_blank" href="[url=view-source:https://getk2.org/]https://getk2.org/[/url]">K2 v2.10.3</a>
                <div>
                    Copyright &copy; 2006-2022 <a target="_blank" href="[url=view-source:https://www.joomlaworks.net/]https://www.joomlaworks.net/[/url]">JoomlaWorks Ltd.</a>
                </div>
            </div>
        </div>
        <div id="k2ContentView">

How can I fix this?

Please Log in or Create an account to join the conversation.

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
2 years 9 months ago #179865 by Thomas Thrane
Replied by Thomas Thrane on topic PHP8 - getting blank page when saving
Missed the snippets error - the sourcecode says:
<div id="k2AdminContainer" class="K2AdminViewItem isJ30 isEditForm">
<div id="k2Sidebar" style="visibility:hidden;">
<button aria-expanded="false" aria-controls="menu" id="k2ui-menu-control">&#8801;</button>

<ul class="k2-disabled">
<li>
<span>Items</span>
</li>
<li>
<span>Categories</span>
</li>

<li>
<span>Tags</span>
</li>

<li>
<span>Comments</span>
</li>

<li>
<span>Users</span>
</li>
<li>
<span>User groups</span>
</li>
<li>
<span>Extra fields</span>
</li>
<li>
<span>Extra field groups</span>
</li>

<li>
<span>Media manager</span>
</li>
<li>
<span>Information</span>
</li>
</ul>

<div id="k2Copyrights">
<a target="_blank" href="[url=view-source:https://getk2.org/]getk2.org/[/url]">K2 v2.10.3</a>
<div>
Copyright &copy; 2006-2022 <a target="_blank" href="[url=view-source:https://www.joomlaworks.net/]www.joomlaworks.net/[/url]">JoomlaWorks Ltd.</a>
</div>
</div>
</div>
<div id="k2ContentView">

Please Log in or Create an account to join the conversation.

More
2 years 9 months ago #179873 by ChrisB1983
Replied by ChrisB1983 on topic PHP8 - getting blank page when saving
Have you looked inside your PHP error log?

Please Log in or Create an account to join the conversation.

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
2 years 9 months ago #179874 by Thomas Thrane
Replied by Thomas Thrane on topic PHP8 - getting blank page when saving
Thanks ...
In a new DEV version it's fixed, so I assume K2 are aware.

But I had to go away from the dev because Media Manager failed with some sort of JSON error.

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #179897 by Cristian
Replied by Cristian on topic PHP8 - getting blank page when saving
Hey guys,
Any news about this problem? I'm getting it too: blank page when saving article and media manager with some weird error.

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #179933 by JoomlaWorks
Replied by JoomlaWorks on topic PHP8 - getting blank page when saving
The issue is related to the PHP library that K2 uses for handling image uploads. If you don't wish to switch to K2 v2.10.4 (dev) now, you can simply copy this file github.com/getk2/k2/blob/master/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on top of the one you have in K2 v2.10.3 (same path of course).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum