 | |  | |
March 15th, 2013, 02:33 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
| Deprecated errors with 2.5
I'm getting these errors when accessing my gallery from vB 3.8. Gallery is version 2.5.2. PHP version is 5.3.21. Site is hosting with GoDaddy in case it matters. How do I fix this?
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/05/10432705/html/uniquecobra/gallery/index.php on line 191
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/05/10432705/html/uniquecobra/gallery/gallery_global.php on line 429
Deprecated: Assigning the return value of new by reference is deprecated in /home/content/05/10432705/html/uniquecobra/gallery/gallery_global.php on line 443
|
| |
March 15th, 2013, 03:51 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Well the simple truth here is that software is very old and never written for PHP 5.3. It integrates with a forum product which was end of life 4 years ago. vBulletin has released a couple security fixes but thats it.
The issue is a simple one you would need to search those files for lines like this Code: Content visible to verified customers only.
Basically PHP 5.3 does not like =& you would simply change that reference to just = and that should get rid of your error.
|
| |
March 15th, 2013, 03:54 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
|
Thanks Chuck. It seems that my plan then is to upgrade VB to 4.2 and to convert the gallery to Pro. Looks like I have a project.
|
| |
March 15th, 2013, 04:08 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
|
Are there conversion tools to migrate gallery data to Pro?
|
| |
March 15th, 2013, 04:32 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
| |
| |
March 19th, 2013, 02:00 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
|
I have PP Pro installed.
Anyway - I'm trying to convert the data. I had to edit the vbag.php file to allow a longer server path name. Changed 50 to 60 char length.
I get this error when running the script?
Deprecated: Function ereg_replace() is deprecated in /home/content/05/10432705/html/uniquecobra/photopost/vbag.php on line 79
This is the line:
$eadmin2 = ereg_replace("@","\@",$eadmin2);
Is this easily fixed?
Last edited by pbrown; March 19th, 2013 at 02:06 PM.
|
| |
March 19th, 2013, 03:05 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Maybe use
$eadmin2 = preg_replace( '/@/', '\@', $eadmin2);
|
| |
March 19th, 2013, 03:25 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
|
Thanks. That got me a bit further. I had found the new command but wasn't sure about where to put the delimiters.
My next error is this:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/05/10432705/html/uniquecobra/photopost/vbag.php on line 342
Importing 1 Categories.... please wait
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/05/10432705/html/uniquecobra/photopost/vbag.php on line 350
Click here to import photos
|
| |
March 19th, 2013, 03:37 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
|
This is line 341 and 342: Code: Content visible to verified customers only.
Here is the code starting at line 350: Code: Content visible to verified customers only.
I'm not a programmer but am trying to sort this out.
|
| |
March 19th, 2013, 04:28 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
You need to put the correct database information to connect to vbgallery database and the table prefix of your vbgallery tables. What is the prefix you entered for your vbgallery categories table?
|
| |
March 19th, 2013, 05:18 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
| Quote:
Originally Posted by Chuck S You need to put the correct database information to connect to vbgallery database and the table prefix of your vbgallery tables. What is the prefix you entered for your vbgallery categories table? | My table prefix is forum_ for all of the tables the database. I'm looking at PHPMyAdmin and they all start that way.
The gallery database is the same database as the forum unless I'm forgetting something.
I'm looking at about a dozen tables starting with forum_ppgal_. The categories table is named forum_ppgal_categories. So is the prefix 'forum_' or 'forum_ppgal_'?
I'll start over and see if maybe I goofed on the form data.
|
| |
March 19th, 2013, 05:28 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Nov 2005 Location: Seattle, WA
Posts: 56
|
I made a change to the vbag.cnf.php file. I changed the gallery db prefix to forum_ppgal_ and reran the script. It worked fine that time.
Thanks for the assist. I really appreciate it.
|
| |
March 19th, 2013, 05:48 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Not a problem glad to assist.
|
| | |
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 | | Errors | alexhue | ReviewPost Bug Reports | 7 | July 26th, 2010 07:09 PM | | All my errors | alkalino | Photopost Pro How Do I...? | 1 | May 21st, 2010 11:18 AM | | Some Errors I need help with | Sassyho | Photopost Pro Bug Reports | 6 | June 5th, 2008 09:27 AM | | need help with errors... | shortbus | ReviewPost Installation & Upgrades | 1 | July 10th, 2007 05:29 PM | | errors with 5,3,1 | iloco | Photopost Pro Installation & Upgrades | 5 | June 11th, 2006 08:53 AM | All times are GMT -5. The time now is 02:21 PM. | |