PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old January 27th, 2010, 11:50 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2004
Posts: 26
eregi() function depricated php 5.3.1

I am running PP 6.2 and recently upgraded our server to php 5.3.1 and we now encounter a problem with the eregi() function. Is there a simple fix for this issue. Here is the code in the pp-inc.php file (line 79) that throws error messages.

function typecast_wc($pattern, $type)
{
// Let's import the GPC variables
global $_GET, $_POST, $_COOKIE;

foreach ($_GET AS $key => $val)
{
if ( eregi("^".$pattern, $key) )
{
typecast($_GET, array( $key => $type));
}
}

// Overwrites GET with POST
foreach ($_POST as $key => $val)
{
if ( eregi("^".$pattern, $key) )
{
typecast($_POST, array( $key => $type));
}
}
}

Thanks for the help.
Larry Stowell is offline   Reply With Quote
Old January 27th, 2010, 12:49 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
@eregi

You can place @ before the function.

This is something we are addressing in the next update
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 21st, 2012, 10:44 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Location: Beebe, AR
Posts: 66
I fixed that error but I am seeing
Function ereg_replace() is deprecated in /home/fgmcccom/public_html/photopost/pp-inc.php on line 2394

Do I need to add the @ to the 5 places ereg_replace is?
Iann is offline   Reply With Quote
Old April 21st, 2012, 11:00 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,695
Have you upgraded to the latest code. 6.2 is definately going to have some issues like this with newer php versions since that code is over 4 years old or so.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lightbox function skidpics General Discussion 1 March 12th, 2008 08:50 AM
How do I call the /photopost/index.php from my own page in a include function Frank Shaw Photopost Pro How Do I...? 10 July 7th, 2007 11:06 AM
Where is can_administer function? OtAkU How Do I? - vBulletin 3.6x 3 April 30th, 2007 09:57 PM
SOLD IT! Function oldengine Classifieds Bug Reports 1 January 27th, 2007 09:14 AM
SSI Function hoonz ReviewPost Suggestions 2 August 8th, 2004 09:07 PM


All times are GMT -5. The time now is 04:55 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0