Loading...
 

Crash with blank screen at starting for new users (unknown) visitor with 8.1

Status
Open
Subject
Crash with blank screen at starting for new users (unknown) visitor with 8.1
Version
8.x
Category
  • Error
  • Regression
Submitted by
Bernard TREMBLAY
Lastmod by
Philippe Cloutier
Rating
(0)
Description

Main bug.

A new user can't at all connect and get a blank screen.
This without crash.

If the user have an analyser he will find that tiki has sent this code

The page sent content
Copy to clipboard
<html><header</header><body></body></html>


Solution

Note : I had redacted this before a commit but I used the "close button" of "code" plugin which have cut off a large part of my text, and I had a net cutoff just after. So I reproduce here (main page) my solution (which have been detailed in comments). Later Chealer got on the subject.

Probably and surely avoid that $_SESSION'attributes' should be not null, but not only in my opinion.

But as the developer writing, when user is null (new one) the instruction

The actual instruction
Copy to clipboard
array_merge($prefs, $_SESSION['attributes'])


has the aim to keep $prefs values even $_SESSION'attributes' is empty (first start)

The fact that array_merge($prefs, $_SESSION'attributes') returns "null" for any reason (bug in SESSION old DATA etc...), is always an error (if an array is null the instruction array_merge returns an array null in any case).

So the right instruction which answers to the developer aim is (because $prefs can't be null)

The suitable instruction in any case
Copy to clipboard
if (! is_null ($_SESSION['attributes']))array_merge($prefs, $_SESSION['attributes']);

I commit this changes the 19th which has been immediately rewind to be sure that the bug remains...
I don't understand Chealer decision(see the comments).

Waiting for Chealer solution and remarks, may be I have not seen something.

To go farther... I let Chealer go on.

Workaround

Spent near 12hours to find that in user_prefs.php if the data come from another version the $_SESSION'attributes' is a null area.
when merged with prefs default we get null prefs which automatically crashes the execution.

Priority
25
Demonstrate Bug (Tiki 19+)
Please demonstrate your bug on show2.tiki.org
 About show2.tiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.

Version: Create show2.tiki.org instance
Demonstrate Bug (older Tiki versions)
 Show.tiki.org is currently unavailable

Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.

Ticket ID
4051
Created
Saturday 19 November, 2011 01:56:20 GMT-0000
by Bernard TREMBLAY
LastModif
Sunday 10 July, 2016 21:50:49 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
user_prefs.php 22 Nov 11 00:21 GMT-000034Level 399018.1x
user_prefs.php 22 Nov 11 11:06 GMT-000033Level 399018.1x


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools