Author |
Message |
semperaye
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Oct 31, 2011
Posts: 100
Location: North Carolina
|
Posted:
Mon Oct 31, 2011 9:05 am |
|
Hello,
I am new to raven nuke and I have managed to install it on my website and starting experimenting with it and everything seems to be working great except for my forums. When I log into my admin panel and click forums (the link is this: http://www.orgonegemstone.elementfx.com/modules/Forums/admin/index.php) all I get is a blank white page with the following errors on top:
Deprecated: Function ereg() is deprecated in /home/orgonege/public_html/mainfile.php on line 70
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/orgonege/public_html/rnconfig.php on line 268
Note: I have changed my admin to ___admin.php for security reasons and have tried replacing that in the link with no luck.
I'm sure I'm missing something that a newbie like me would, any help would be very much appreciated and I am willing to pay someone to help me get it all working correctly. I've had a REALLY hard time installing ccart pro as well...I managed to get the icon to appear in my admin but that about it lol.
Thank You!
-Derek |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Mon Oct 31, 2011 9:32 am |
|
Make sure $display_errors = false in config.php.
Also, are you sure you are using the latest RavenNuke 2.40.01? |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 9:54 am |
|
Ok ty I will do that in config. Ya I downloaded it here the latest version. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 10:01 am |
|
If that doesn't fix it, try to reupload your forum directory just to make sure everything is there. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 10:11 am |
|
Ok my display errors are set to false... going to attempt to reupload my forum directory ![Razz](modules/Forums/images/smiles/icon_razz.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Coldy
Hangin' Around
![](modules/Forums/images/avatars/097.gif)
Joined: Apr 24, 2004
Posts: 48
Location: Austria
|
Posted:
Mon Oct 31, 2011 10:20 am |
|
This is a PHP 5.3+ problem.
All available Nuke-Versions a coded for PHP 4.+
Look also here: Only registered users can see links on this board! Get registered or login!
A solution to hide the errors is to include this line:
error_reporting(E_ALL & ~E_DEPRECATED);
or:
transcode to PHP 5.+ ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 10:24 am |
|
reuploaded/overwrited moduals/forums directory and still have nothing appearing just those errors on the top of the page and the blank white background.
"Deprecated: Function ereg() is deprecated in /home/orgonege/public_html/mainfile.php on line 70
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/orgonege/public_html/rnconfig.php on line 268"
Note: I have those errors on EVERY page even my home page. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 10:27 am |
|
Coldy wrote: | This is a PHP 5.3+ problem.
All available Nuke-Versions a coded for PHP 4.+
Look also here: Only registered users can see links on this board! Get registered or login!
A solution to hide the errors is to include this line:
error_reporting(E_ALL & ~E_DEPRECATED);
or:
transcode to PHP 5.+ |
Ok so where do I iclude that line of code? on the end of the =false or in a new line below it?
It would be cool to hide that error but it doesn't solve my inability to access my forums admin Also how do I "transcode" to php 5+ sorry newbie here...but I really appreciate the help!
Yes, my php version is according to cpannelx: 5.3.8 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 10:42 am |
|
I found the following on another forum:
error_reporting(E_ALL & ~E_DEPRECATED);
Add the above line to the top of the PHP section in index.php (or whatever page the script uses as an entry point).
But on that forum they where not talking about Nuke, and unfortunitly since Im a newbie with php and nuke I do not understand where the "php section" is anyway so i'm going to have to just cut and paste this code in places until it works ![Razz](modules/Forums/images/smiles/icon_razz.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 10:52 am |
|
Wow I got rid of the error lol.
Ok so this is what you do:
At the top of the mainfile.php you paste:
error_reporting(E_ALL & ~E_DEPRECATED);
You paste it directly Under where it says:
<?php
AHHHH AND IT FIXED THE FORUMS!! I love u guys Thanx! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Oct 31, 2011 5:05 pm |
|
That doesn't make any sense at all.
If error reporting is turned off in config.php it should not display any PHP errors any way.
My development server runs PHP 5.3.x and I have never had issues with this particular problem.
Line 70 (and around there) deals with sending page header data and no header data should be being sent to the browser until much later in the code flow and certainly not before mainfile.php has finished loading.
Do you have a link to your site or can you Private Message me a link if you prefer to not make your website address public. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
semperaye
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Oct 31, 2011 5:12 pm |
|
pm sent ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/5ed231554a8492e2e09da.gif)
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Tue Nov 01, 2011 11:37 am |
|
Agree with Guardian last post. This is strange! I think he is not running 5.3 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 01, 2011 11:50 am |
|
I did check his site for him and couldn't detect anything else sending headers. I had a sneaking suspicion it might have been one of those hosting providers that likes to diaply ads at the top of their users sites but that wasn't the case.
The theme checked out fine as well (some minor CSS fixes required but no header issues).
Strictly speaking, the error handling code really needs to be in the site root index.php since that is essentially the 'handler' for mainfile.php but we work with what we have (for now). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Coldy
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 01, 2011 1:47 pm |
|
@Guardian
I've a testsite on a German Free-Hosting Provider and there are also this Errors.
The PHP-Version is 5.3.4!
Before, i had the latest RavenNuke installed on this Server.
After an PHP-Update, the wohle page was full of "eregi", "eregi", "ereg_replace" and other Errors.
My research has shown that it is due to PHP 5.3+.
My own Project was also affected.
Now i have made a PHP5 compatible Version. ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 01, 2011 1:59 pm |
|
Well the errors themselves are correct, even though they are not actually 'errors' (they are warnings). They show because these functions are deprecated in later PHP versions (incidentally, only around 7% of hosting providers use PHP 5.3.x).
What I am having difficulty understand is why these notices were displayed when error reporting is turned off in the config.php file.
The only conclusion I can come to at the moment is that server default settings (in the php.ini file) have already declared the type of errors to display and that they have turned on error reporting by default. RavenNuke overrides those settings but possibly a little too late in the code flow. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|