Return to Project-GC

Welcome to Project-GC Q&A. Ask questions and get answers from other Project-GC users.

If you get a good answer, click the checkbox on the left to select it as the best answer.

Upvote answers or questions that have helped you.

If you don't get clear answers, edit your question to make it clearer.

0 votes
115 views

Recently created geocaching.com users are prevented from reading or posting on project-gc.com forum threads. The site fails to load content and returns an error.

Requirements:

1. New user created on geocaching.com (example)
2. New user created on project-gc.com (example, user ID 49692466)
3. Ensure user does not have any activity logged (unclear if this is required)
4. Visit a forum thread (example)

Result: 

Question2Answer fatal error:
Reading one assoc from empty results

Stack trace:
require() in index.php:27
require() in qa-index.php:188
qa_page_queue_pending() in qa-page.php:38
qa_get_logged_in_userid() in page.php:42
qa_get_logged_in_user_field() in users.php:111
qa_get_logged_in_user_cache() in users.php:100
qa_get_logged_in_user() in users.php:80
qa_db_read_one_assoc() in qa-external-users.php:222

in Bug reports by SFTX (480 points)

1 Answer

+2 votes
 
Best answer

This has actually been intentional. For some reason it was required that the user had at least 10 page views on Project-GC before accessing the forum.

  1. I don't agree that it is a good design.
  2. There was no error handling and no proper user feedback. Which is bad.
  3. I removed that requirement.
by magma1447 (Admin) (243k points)
selected by SFTX
...