Loading...
 
Skip to main content

Profile "Preview Changes" button brings up modal with fatal error in some cases

Status
Closed
Subject
Profile "Preview Changes" button brings up modal with fatal error in some cases
Version
19.x
19.x Regression
20.x
21.x
22.x
Category
  • Regression
Feature
Profile Manager
Resolution status
Fixed or Solved
Submitted by
luci
Volunteered to solve
Jonny Bradley
Lastmod by
luci
Rating
(0)
Description

Some profiles bring up this fatal error when you try to preview the changes to be made:

Copy to clipboard
Fatal error: Uncaught TypeError: Argument 1 passed to Tiki_Profile_Installer::install() must be an instance of Tiki_Profile, boolean given, called in /var/www/clients/client1/web16/subdirs/tiki19x/admin/include_profiles.php on line 85 and defined in /var/www/clients/client1/web16/subdirs/tiki19x/lib/core/Tiki/Profile/Installer.php:409 Stack trace: #0 /var/www/clients/client1/web16/subdirs/tiki19x/admin/include_profiles.php(85): Tiki_Profile_Installer->install(false, 'all', true) #1 /var/www/clients/client1/web16/subdirs/tiki19x/tiki-admin.php(545): include_once('/var/www/client...') #2 {main} thrown in /var/www/clients/client1/web16/subdirs/tiki19x/lib/core/Tiki/Profile/Installer.php on line 409


Update
In 22.x it brings an Error alert dialog:

Error loading profile This message will move to the top of the page after a few seconds.
Solution

It should be bullet proof or show something like "This profile has some code issues to be currently previewed" if it is a matter of wrong code. But hard to say, as the profile installs flawlessly then. Just the profile preview fails.

Hopefully 6f9ef24a ?

Importance
10 high
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6971
Created
Thursday 06 December, 2018 22:00:22 UTC
by luci
LastModif
Wednesday 28 October, 2020 16:15:00 UTC


Show PHP error messages