PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Installs and Upgrade - vBulletin 3.7x / 3.8x (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-7x-3-8x/)
-   -   Deprecated errors with 2.5 (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-7x-3-8x/149328-deprecated-errors-2-5-a.html)

pbrown March 15th, 2013 02:33 PM

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

Chuck S March 15th, 2013 03:51 PM

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.

pbrown March 15th, 2013 03:54 PM

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.

Chuck S March 15th, 2013 03:56 PM

Yes Pro has lots more features and our new 8.3 due out soon even supports vb5 and has features like photo tagging etc ;)

A community photo gallery - ReefTalk Gallery

A community photo gallery - My Photo Gallery

pbrown March 15th, 2013 04:08 PM

Are there conversion tools to migrate gallery data to Pro?

Chuck S March 15th, 2013 04:32 PM

http://www.photopost.com/forum/1206159-post1.html

That should help

pbrown March 19th, 2013 02:00 PM

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?

Chuck S March 19th, 2013 03:05 PM

Maybe use

$eadmin2 = preg_replace( '/@/', '\@', $eadmin2);

pbrown March 19th, 2013 03:25 PM

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

pbrown March 19th, 2013 03:37 PM

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.

Chuck S March 19th, 2013 04:28 PM

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?

pbrown March 19th, 2013 05:18 PM

Quote:

Originally Posted by Chuck S (Post 1307273)
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.

pbrown March 19th, 2013 05:28 PM

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.

Chuck S March 19th, 2013 05:48 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97