Project Beehive ForumReceiving error when installing via softaculous

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Alex (REZIEM)  
 To:  ALL
42798.1 
Hello,

I am trying to install beehive via Softaculous and I am receiving this error:
 
Quote: 
An error has occurred. Please wait a few moments and then click the Retry button below. Details of the error have been saved to the default error log.

I have tried reinstalling it but that did not work. I am not sure what else to try. I also am not sure how to view the error log since this is being installed through softaculous on cPanel. Do I need look for the log in the file manager?

Any help would be greatly appreciated. :)

APPROVED: 26 Jul 22:11 by BOUGHTONP

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Alex (REZIEM)     
42798.2 In reply to 42798.1 
The log file will be the PHP log file.

Depending on how cPanel is setup, this may have its own icon on the page you see when you login and/or it may be configured to be within your home directory.

This cPanel blog entry is for Wordpress, but skip past that to "How To Log PHP Errors Beyond WordPress" and it covers editing php.ini to configure where and how PHP logs.

0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  Peter (BOUGHTONP)     
42798.3 In reply to 42798.2 
So I ended up just changing the PHP version on Cpanel to version 5.4 and everything is working now.
What are your thoughts on doing that? Will that be ok?

I also found the log file if we need to go that route.

APPROVED: 26 Jul 23:04 by BOUGHTONP

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Alex (REZIEM)     
42798.4 In reply to 42798.3 
What version did you change from?

From a Beehive perspective, it needs at least PHP 5.3 - so 5.4 should work fine - but from a PHP security perspective I don't think 5.x releases are still supported, and ideally you'd want to be on at least PHP 7.3

0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  Peter (BOUGHTONP)     
42798.5 In reply to 42798.4 
I went from 7.3 --> 5.6. Anything above 5.6 gives me that error.
Quote: 
An error has occurred. Please wait a few moments and then click the Retry button below. Details of the error have been saved to the default error log.

I definitely am concerned if security risks are a factor running an older version.
Is there any sensitive information in the log? I can post it here if that is the next best step. 
 

APPROVED: 27 Jul 09:35 by MILKO

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Alex (REZIEM)     
42798.6 In reply to 42798.5 
Not sure whether the log might contain sensitive info, but if you open it in a text editor, jump to the end and use the timestamps to get just the relevant entry from it then that should be ok.

I have a feeling this might be related to errors I noticed earlier this year, where I think something in PHP changed and a bunch of previously-working code now needs to be updated - if so the log entry would contain "Trying to access array offset on value of type null".

0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  Peter (BOUGHTONP)     
42798.7 In reply to 42798.6 
I did what you said and jumped to the end of the error log and I am seeing lots of...
Quote: 
- PHP Deprecated
- Methods with the same name as their class will not be constructors in a future version of PHP
-
html_frame has a deprecated constructor
The thing is I am not sure what would make it stop working since old PHP versions seem to work.
I'd love to get it working with with 7.3 like you said so it is more secure.

What was the code that needed updating?

Also, just want to say thanks for staying with me, helping me and replying to me consistently. I truly appreciate your patience. I love the old school feel of Beehive and it seems like a good fit for what I want to do with it. I hope I can get it working :)
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Alex (REZIEM)     
42798.8 In reply to 42798.7 
All that "deprecated" stuff is just warnings that shouldn't be a problem. (At least not with the current PHP version, will probably need addressing to get it working with v8 or later).

If you edit "forum/boot.php" and change "error_reporting(E_ALL | E_STRICT);" to "error_reporting(E_ALL &~ E_DEPRECATED);" it might make them go away, and that might even be enough to get it working.


Otherwise, the issue I found was in at least two files, but I also identified other potential problems, and then priorities shifted, and I don't recall what state things are in (the changes are on another computer).

Anyway, you can try editing these files to see if it solves the issue:

forum/include/thread.inc.php - approx line 1365, function thread_has_attachments
forum/include/stats.inc.php - approx line 1499, function stats_get_most_popular_birthday

In both cases there is an existing "if (!($result = $db->query($sql))) return false;" and the fix was to add "if ($result->num_rows == 0) return false;" on the next line immediately afterwards.

I'll check the state of things on my other computer tomorrow and see if I can confirm what else might need fixing.

0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  Peter (BOUGHTONP)     
42798.9 In reply to 42798.8 
All that "deprecated" stuff is just warnings that shouldn't be a problem. (At least not with the current PHP version, will probably need addressing to get it working with v8 or later).

If you edit "forum/boot.php" and change "error_reporting(E_ALL | E_STRICT);" to "error_reporting(E_ALL &~ E_DEPRECATED);" it might make them go away, and that might even be enough to get it working.


Holy smokes this worked!!! You are my hero! I changed the line of code and it allowed me to use PHP v7.3. No error!

Thank you very much for your time and effort helping me solve this. Can't wait to start using the software.  :-)

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Alex (REZIEM)     
42798.10 In reply to 42798.9 
Cool, glad it's working.

I now know why that worked as well, and (as I suspected) it will continue to be ok for PHP 7.x versions, but will need addressing for PHP 8.0, which should be simple enough.

0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  Peter (BOUGHTONP)     
42798.11 In reply to 42798.10 
Good to know it will keep working for 7.x versions.

I don't mean to switch gears here but I have a quick question.
Do you by chance know how you put the logo on the start page?

I know you can edit the start page within the admin panel but the teh forum logo seems to be placed there in a more "fancy" way because it is dynamically changing with the size of the browser window. It is also in the dead center. I'd love to do the same with my forum.
0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Alex (REZIEM)     
42798.12 In reply to 42798.11 
I'm not a forum developer but ... inspecting with developer tools, it appears to be nested inside a "div.logo" with inline styling:
position: absolute;
left: 50%;
top: 50%;
width: 340px;
height: 150px;
margin-left: -170px;
margin-top: -75px;
z-index: 0;
border: 0px;

- with the image contained therein of same pixel dimensions.

The image stays the same size on Firefox desktop (Windows 7) when resizing, at least for me.
"When I'm struggling to edit down to a word count I hyphenate all the words in a sentence and then make the font colour of all the hyphens white."
0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  CHYRON (DSMITHHFX)     
42798.13 In reply to 42798.12 
I'm not a forum developer but ... inspecting with developer tools, it appears to be nested inside a "div.logo" with inline styling:
position: absolute;
left: 50%;
top: 50%;
width: 340px;
height: 150px;
margin-left: -170px;
margin-top: -75px;
z-index: 0;
border: 0px;

- with the image contained therein of same pixel dimensions.

The image stays the same size on Firefox desktop (Windows 7) when resizing, at least for me.

Ok this got my close! Thank you :) the thing is I am struggling to figure out where to place this code in? There are so many .php files in the public html folder not sure where to start. No worries if you don't know either. 

0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)  
 To:  Alex (REZIEM)     
42798.14 In reply to 42798.13 
Yeah not familiar with the beehive code or for that matter php ... I would try a global search on "logo," and you'll probably spot it.
"When I'm struggling to edit down to a word count I hyphenate all the words in a sentence and then make the font colour of all the hyphens white."
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Alex (REZIEM)     
42798.15 In reply to 42798.11 
In the Admin area, goto Start Page section, and use the HTML button so you can add <div class="logo"><img src="yourlogo.png" /></div> (or whatever you want - the key part is class="logo" on the outer div).

Then save the following as a .css file on your local machine, and use the "Upload CSS style sheet" option under the editor to upload it to the forum.

body.start_main .logo
{ 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    width: 340px; 
    height: 150px;
    margin-left: -170px; 
    margin-top: -75px; 
}

Note that width/height values should match your image/logo size and the margin left/top should be half that value (but negative).

When you upload the CSS, it gets stored in the database (in the FORUM_SETTINGS table), not as a file.

0/0
 Reply   Quote More 

 From:  Alex (REZIEM)  
 To:  Peter (BOUGHTONP)     
42798.16 In reply to 42798.15 
In the Admin area, goto Start Page section, and use the HTML button so you can add <div class="logo"><img src="yourlogo.png" /></div> (or whatever you want - the key part is class="logo" on the outer div).

Then save the following as a .css file on your local machine, and use the "Upload CSS style sheet" option under the editor to upload it to the forum.

body.start_main .logo
{ 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    width: 340px; 
    height: 150px;
    margin-left: -170px; 
    margin-top: -75px; 
}

Note that width/height values should match your image/logo size and the margin left/top should be half that value (but negative).

When you upload the CSS, it gets stored in the database (in the FORUM_SETTINGS table), not as a file.

Thank you so very much! This did it for me. It looks very good :) I truly appreciate all the help.

0/0
 Reply   Quote More 

Reply to All    
 

1–16

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2021 Project Beehive Forum

Forum Stats