 | |  | | | ReviewPost Installation & Upgrades If you're having problems getting ReviewPost Pro to work or receiving errors while running RP, seek help here. |
September 27th, 2005, 07:54 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2004
Posts: 76
| upgrading from 3.01 to 3.1
received this error.
Fatal error: Call to undefined function: get_regcode() in /xxx/xxx/public_html/reviews/pp-inc.php on line 1695
|
| |
September 27th, 2005, 09:25 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Make sure to upload your forums subdirectory with your integration file
That function is contained within the integration file.
|
| |
September 27th, 2005, 09:38 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jul 2004
Posts: 76
|
if you are referring to the config-int that has already had the variables in my original config file entered in. Originally as noted for an upgrade I did not upload the config files and then when it didn't work; I transferred the site's settings to the new config files and still receive the error.
|
| |
September 27th, 2005, 09:58 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
No I am talking about the forums subdirectory under reviewpost. That error tells me you do not have all the required files uploaded especially your forum integration file. It this is a standalone that file is called reviewpost.php if this is vb3 then its the vb3.php file
|
| |
September 27th, 2005, 10:28 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jul 2004
Posts: 76
|
got it - thanks! For some reason when I set the FTP to overwrite it must not have caught that one... |
| |
September 28th, 2005, 01:06 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 179
|
I get the same error for my IB2 install Quote: |
PHP Fatal error: Unknown function: get_regcode() in /home/[...]/html/reviewpost/pp-inc.php on line 1695
| I've checked the forums files (index.php ppinc ib2 etc) and they are indeed up to date (checked them in an editor remotely). The get_regcode function does exist and the file is up to date. Core files have been uploaded and upgrade has gone as per instructions in the forums.
Addendum: repalcing the new pp-inc.php file with the older revision (3.01) and the page loads. Looks like the current pp-inc.php file has a typo or bug in it somewhere that's preventing the correct forums integration file from loading.
Last edited by Arnie; September 28th, 2005 at 01:19 PM.
|
| |
September 28th, 2005, 01:21 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
This is nothing new to our software here. it has been coded this way for a long while here
The only way you can get this error is the software can not find your integration file as in any of the follow
1. The file does not exist
2. The path to your reviewpost is wrong
3. Your integration type is empty in the database
This is the line in the pp-inc.php
// Now lets include the forum integration
require "{$Globals['RP_PATH']}/forums/{$Globals['vbversion']}.php";
|
| |
September 28th, 2005, 01:26 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 179
|
This is an upgrade from a previously working version, so the path is correct, the file does exist and the integration type is filled in (it's an upgrade on a working version).
Given that the 3.01 version of pp-inc works yet 3.1 doesn't there must be a change somewhere in the pp-inc code that is prohibiting the correct integration forum code from being included. I see the line that's meant to require it, but I'm guessing that either one of the global settings that makes it up is incorrect or null for some reason. I don't know why.
Has anyone got a working version of 3.1 with IB2 anywhere?
Last edited by Arnie; September 28th, 2005 at 01:36 PM.
|
| |
September 28th, 2005, 01:46 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
well you need to check and make sure the old file is being overwritten just like the user above.
The new file does indeed not exist them and you still have an old file there. The only 3 reasons you can get this error is how I posted above.
The ib2.php file in our release indeed has a get_regcode function within it
|
| |
September 28th, 2005, 01:51 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 179
|
I've got the two versions of pp-inc on the server, I've verified that they are indeed the present release, and the older 3.01 release.
Just to highlight this, the older version of pp-inc works just fine (even with the 3.1 codeset), by this I mean it'll display the index page. With the new 3.1 code uploaded, as soon as pp-inc is replaced with the new version it complains that it can't find get_regcode.
I'm pretty certain that for some reason in the 3.1 release of the code I have here it's not reading in the globals properly, and hence not loading the path and the forum integration file anywhere.
Is there a working install of ReviewPost 3.1 and IPB2 anywhere online?
|
| |
September 28th, 2005, 01:55 PM
|
#11 (permalink)
| | Member
Join Date: Sep 2003
Posts: 110
|
I've just upgraded from 2.8 to 3.1 and am also having this problem:
Fatal error: Call to undefined function: get_regcode() in /xxxx/xxxx/public_html/reviews/pp-inc.php on line 1695
Here's my Reviews page: http://www.photographyblog.com/reviews/
I've tried deleting ib2.php and re-uploading it several times (that's the forum software that I use).
|
| |
September 28th, 2005, 02:00 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
I have 3.1 right here http://www.reeftalk.com/reviews
The pp-inc from 3.1 and 3.01 is virtually identical except the cache code
I was able to upgrade with no issues
will do some testing though
|
| |
September 28th, 2005, 02:05 PM
|
#13 (permalink)
| | Member
Join Date: Sep 2003
Posts: 110
|
I've just tried what Arnie did (upload the 3.01 version of pp-inc.php) and the Reviews page now loads, although the stats seem to be missing.
I'm a bit hesitant to carry on though, as the 3.01 version of pp-inc.php is smaller in size than the 3.1 version (by 8Kb) and I have no idea what is missing from it!
|
| |
September 28th, 2005, 02:07 PM
|
#14 (permalink)
| | Member
Join Date: Sep 2003
Posts: 110
|
The cache code is the reason that I'm upgrading, so I definitely want to use the right version of pp-inc.php now!
|
| |
September 28th, 2005, 02:13 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
well where do you get that error running what?
|
| |
September 28th, 2005, 02:15 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 179
| Quote: |
Originally Posted by omegatron I have 3.1 right here http://www.reeftalk.com/reviews
The pp-inc from 3.1 and 3.01 is virtually identical except the cache code
I was able to upgrade with no issues
will do some testing though | I believe it works for you honest  All I mean is that there's no public version of IPB2 and RP 3.1 that I know of anywhere.
As a test I removed the functions preceeding the last require line (some new calendar funcs) in pp-inc and the header starts to be generated, although the index page is not complete.
|
| |
September 28th, 2005, 02:18 PM
|
#17 (permalink)
| | Member
Join Date: Sep 2003
Posts: 110
|
Arnie, here's my current version of RP 3.1 with IPB2.04: http://www.photographyblog.com/reviews/index.php
When you say that your Index page isn't complete, are you missing Stats, Recent Reviews etc like me?
These all appear OK if you click-through on a product, but are not shown on the Index page.
Last edited by Mark Goldstein; September 28th, 2005 at 02:20 PM.
|
| |
September 28th, 2005, 02:26 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 179
|
Nah, I was playing wih the code in pp-inc to see if removing some of the changes would help my upgraded files work, and managed to get some of the headers and top of the page generated.
If I replace pp-inc.php with the older version (3.01) I have filed away it will display the index page without the stats like you said. Are you sure you overwrote pp-inc.php? I got exactly what you described when using the 3.01 version of pp-inc with the 3.1 install files.
All I get on your page is "The PhotographyBLOG User Reviews are temporarily offline for maintenance.", so I can't see much.
That's more than I got though.
Here's my working install of 3.01: http://www.arniesairsoft.co.uk/reviewpost/
Here's 3.1 half working with v3.01 of pp-inc.php (all files updated bar pp-inc in this sub-dir): http://www.arniesairsoft.co.uk/reviewpost_new/
Last edited by Arnie; September 28th, 2005 at 02:28 PM.
|
| |
September 28th, 2005, 02:28 PM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
If you do not upload the proper files of course your not going to get the cache stuff displayed.
Now on to this issue it has nothing to do with your integration unless of course the function is missing from your ib2.php file
Now if I look at the ib2.php file this is there
function get_regcode() {
global $Globals;
$regtext = " · <a href=\"{$Globals['vbulletin']}/index.php?act=Reg&CODE=00\">{$Globals['pp_lang']['register']}</a>";
return($regtext);
}
Now the get_regcode is called in the topmenu function which is called in the scripts like index.php now at the bottom of pp-inc.php is this
// Now lets include the forum integration
require "{$Globals['RP_PATH']}/forums/{$Globals['vbversion']}.php";
So we go back to why your site is not pulling one of the following
1. The RP_PATH
2. The $Globals integration variable
3. The file is missing or function does not exist in that file
Some one needs to give me access to a site. The person who reported this thread indeed found out they had not overwritten there file with the new one.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Help with upgrading EVERYTHING! | digidivakathy | Photopost Pro Installation & Upgrades | 1 | November 10th, 2005 02:21 PM | | Upgrading | dieselpowered | How Do I? - vBulletin 3.0.X | 16 | February 13th, 2005 01:46 AM | | Upgrading | Delw | How Do I? - vBulletin 3.0.X | 3 | December 14th, 2004 03:33 PM | | Upgrading from 2.5.2 to 2.8.2 | JayMorr | ReviewPost Installation & Upgrades | 4 | September 13th, 2004 10:53 AM | | Upgrading from 4.6 to 4.8.1 | Smoothie | Photopost Pro Installation & Upgrades | 25 | August 5th, 2004 05:24 PM | All times are GMT -5. The time now is 04:32 PM. | |