GithubHelp home page GithubHelp logo

Comments (7)

brunnopleffken avatar brunnopleffken commented on May 27, 2024

Wow, that's weird. I never got this issue before and I'm unable to reproduce it.
Take a look at c_config, looking for a field named theme_default_set. Is it there?

In index.php this is defined on the line 202 and saved on $this->template. Right after the "else", add the following line:

String::PR($this->template);

Does it return any value?

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 27, 2024

Hey @halojoy
Any good news? Is everything working properly?
If not, let me know!

from addictive-community.

halojoy avatar halojoy commented on May 27, 2024

I tried the String::PR($this->template); Right after else. But it does not show anything.
template_default_set is 'default'

It is very strange I get these issues. One thing, I run the MySQL is strict mode. But this should not be a prooblem.

I have been away for 10 days.

I suspect I have a problem. I say probably your code is good.
Because I have done install of MyBB and UseBB
and I get some error from them. Error in the initial defines.
But what can it be?

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 27, 2024

Hmm, I'll see if I run MySQL in strict mode I get this issues. And also you're getting all these "undefined variables/index" notices when calling for user groups, member IDs, etc. All these settings are defined in Main() (index.php), that's why I said you to see what's inside $this->template...

How is your MySQL log?

NOTE: String::PR() is the same as print_r(), but wrapped with <pre> tags... ;)

from addictive-community.

halojoy avatar halojoy commented on May 27, 2024

this line is executed:
$this->template = $this->Session->member_info['template'];
But the value after this is NULL.

I also var_dump $this->Config. It looks to be very good. Values has been received from DB.

from addictive-community.

halojoy avatar halojoy commented on May 27, 2024

Solved!
I deleted first all sessions. Not any better.
I deleted all cookies in Firefox. Much better. No notices and no errors.

Can be a leftover COOKIE from previous install.
I dont think Addictive creates cookies while installation?

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 27, 2024

The Session class checks if cookies are defined, but not if cookies are empty. Of course, an empty cookie will return... empty...

As I'm unable to reproduce this, I'll just do a second step to check if the cookie member_id is >= 1 (if not Addictive Community will treat the member as a guest) and hope that it works out.

from addictive-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.