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
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
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.
Are there conversion tools to migrate gallery data to Pro?
That should help
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?
$eadmin2 = preg_replace( '/@/', '\@', $eadmin2);
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
This is line 341 and 342:
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?
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.
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.
Not a problem glad to assist.
|All times are GMT -5. The time now is 01:07 AM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0