*

Burton

  • ***
  • 128
Help please - Deprecated Lines on Instalation
« on: January 24, 2015, 02:06:32 AM »
Hello,

I have these 3 problem lines when I try to install

All help greatly appreciated :)

Deprecated: Assigning the return value of new by reference is deprecated in /srv/disk1/942392/www/dating-asian-singles.com/libs/Pear/DB.php on line 311

Deprecated: Assigning the return value of new by reference is deprecated in /srv/disk1/942392/www/dating-asian-singles.com/libs/Pear/DB.php on line 384

Deprecated: Assigning the return value of new by reference is deprecated in /srv/disk1/942392/www/dating-asian-singles.com/libs/Pear/DB.php on line 889

.........................
Update:

After searching and reading I have found this, I will try and see what happens.

This is actually not an error, but your PHP seems to be configured to display this as warning.
 To fix it, try this, edit your ".php" file, search around the line for this code:

$form =& new stdClass();

change it to become:

$form = new stdClass();
« Last Edit: January 24, 2015, 03:08:36 AM by Burton »

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #1 on: January 24, 2015, 03:26:01 AM »
Hello,

I have these 3 problem lines when I try to install

All help greatly appreciated :)

Deprecated: Assigning the return value of new by reference is deprecated in /srv/disk1/942392/www/dating-asian-singles.com/libs/Pear/DB.php on line 311

Deprecated: Assigning the return value of new by reference is deprecated in /srv/disk1/942392/www/dating-asian-singles.com/libs/Pear/DB.php on line 384

Deprecated: Assigning the return value of new by reference is deprecated in /srv/disk1/942392/www/dating-asian-singles.com/libs/Pear/DB.php on line 889

.........................
Update:

After searching and reading I have found this, I will try and see what happens.

This is actually not an error, but your PHP seems to be configured to display this as warning.
 To fix it, try this, edit your ".php" file, search around the line for this code:

$form =& new stdClass();

change it to become:

$form = new stdClass();

Hi Burton,

It tells us nothing when you don't tell us what version osDate is being installed, what version PHP you installing on as you can see in my signature on my profile and post reply to you.

I am betting your trying to install onto PHP 5.5 or your using osDate 2.6.
In the download section it says what specs are needed to run each version ;)

Or the other problem is you need the new DP.php ??

Let us know this info and maybe we can be further help :)
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #2 on: January 24, 2015, 04:35:28 AM »
Hello Phil,

Thank you for your quick reply,

Yes apologizes for not added enough data,

My Host is running PHP version 5.3.28

I was trying to install osDate version 2.5.4 thinking it was the latest version,

Yet since joining this forum 1 hour ago I found that the current version is 2.6.5

So I am now uploading version 2.6.5 to my host to try the install again,

I will reply again once I know what happens :)

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #3 on: January 24, 2015, 06:18:17 AM »
Hello Phil,

Thank you for your quick reply,

Yes apologizes for not added enough data,

My Host is running PHP version 5.3.28

I was trying to install osDate version 2.5.4 thinking it was the latest version,

Yet since joining this forum 1 hour ago I found that the current version is 2.6.5

So I am now uploading version 2.6.5 to my host to try the install again,

I will reply again once I know what happens :)

Hi Burton,

No worries, yes that was the cause of your error being osdate 2.5.4 works best in PHP 5.2 hence the errors.
Sometimes you can rid the error with the DP.php fix .

You should be good to go with osDate 2.6.5 and will work in PHP 5.4 but not PHP 5.5 yet.

Have fun learning the script, there are help files are on here like installling osDate, using osDate and Administering osDate plus more.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #4 on: January 25, 2015, 08:16:58 AM »
Hello Phil,

I wanted to let you know that all is well, installed easily,and running perfectly.

My next question is how to change/modify the homepage look/layout?

I have been busy making changes to different templates,

But! what ever I remove from the Front/Homepage also vanishes from the Logged in User page.

What template should I be working on to just change the Front/Home page?

your help appreciated :)

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #5 on: January 25, 2015, 09:03:18 AM »
Hello Phil,

I wanted to let you know that all is well, installed easily,and running perfectly.

My next question is how to change/modify the homepage look/layout?

I have been busy making changes to different templates,

But! what ever I remove from the Front/Homepage also vanishes from the Logged in User page.

What template should I be working on to just change the Front/Home page?

your help appreciated :)

Hello Burton,

The main template is the default one.
If you wish to make a customized template then you need to make another folder, rename it what you want to like example: mycooldatesite and copy all the files from the default folder to your new named template and make your changes in that folder and files, this way if make a mistake you will have the original files in the default.

The reason you affected both sides being homepage and user pages logged in is because you need to learn what is not used in the logged in side compared to the logged out view.

Search this forum for tips and help in the template section. Tip one, these templates use smarty 2 tags.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #6 on: January 25, 2015, 11:09:25 AM »
Hi Phil,

Good information, thank you :)

My problem seems to be the "Rendered page" code

<!-- Rendered page -->
      <div style="width:810px; vertical-align:top; display:inline; float:left;  align="left">
         {$rendered_page}
         <br />
         {$modosdate_main}
         <br />
        </div>

Because I want the Front/Home page wider than 900 -1000px

But If I increase the 810px to 900 when a User logs in the logged in rendered page is too wide, due to the Left Column

and the Rendered page component jump down to below the Left Column :(

so I need a Not Logged in Rendered page size 900  (Front/Home page)

and a Logged in Rendered page size of 810px  (Users Details page)

example like this:

{if $smarty.session.UserId == ''}  rendered page size = 900px

{elseif $smarty.session.UserId > 0 } rendered page size = 810px

would this be the way to create the 2 page widths?

« Last Edit: January 25, 2015, 11:11:13 AM by Burton »

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #7 on: January 25, 2015, 11:26:25 AM »
Hi Phil,

Good information, thank you :)

My problem seems to be the "Rendered page" code

<!-- Rendered page -->
      <div style="width:810px; vertical-align:top; display:inline; float:left;  align="left">
         {$rendered_page}
         <br />
         {$modosdate_main}
         <br />
        </div>

Because I want the Front/Home page wider than 900 -1000px

But If I increase the 810px to 900 when a User logs in the logged in rendered page is too wide, due to the Left Column

and the Rendered page component jump down to below the Left Column :(

so I need a Not Logged in Rendered page size 900  (Front/Home page)

and a Logged in Rendered page size of 810px  (Users Details page)

example like this:

{if $smarty.session.UserId == ''}  rendered page size = 900px

{elseif $smarty.session.UserId > 0 } rendered page size = 810px

would this be the way to create the 2 page widths?



Hi Burton,

Your on the right track by the look of things.

You could have it like:
{if $smarty.session.UserId == ''}
<!-- Rendered page -->
      <div style="width:900px; vertical-align:top; display:inline; float:left;  align="left">
         {$rendered_page}
         <br />
{elseif $smarty.session.UserId != ''}
<!-- Rendered page -->
      <div style="width:810px; vertical-align:top; display:inline; float:left;  align="left">
         {$rendered_page}
         <br />

{/if}
« Last Edit: January 25, 2015, 11:29:46 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #8 on: January 26, 2015, 10:39:08 AM »
Hi Phil,

Thank you for that code, that helped me allot! 

All is going well with my osDate learning, and re-designing the visuals,

One question?  Is it complex/complicated to add Transgender to the Men/Women/Couple/Groups ?

Thank you again :)


*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #9 on: January 26, 2015, 12:37:21 PM »
Hi Phil,

Thank you for that code, that helped me allot! 

All is going well with my osDate learning, and re-designing the visuals,

One question?  Is it complex/complicated to add Transgender to the Men/Women/Couple/Groups ?

Thank you again :)



Hi Burton,

Check out this, it has step by step instructions http://www.osdateforum.com/general-osdate-help/drop-down-menu-additions/ to add more gender selections.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #10 on: January 26, 2015, 03:01:52 PM »
Hi Phil,

Thank you for that link :)

It looks complex ........ LOL

I will see what I can do.

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #11 on: January 27, 2015, 03:41:05 AM »
Hi Phil,

I am wanting to simplify the User Signup

So I have removed Last Name: code from the signup.tpl

Line 197:

{if $config.accept_lastname == 'Y' or $config.accept_lastname == '1'}   
<tr>               
<td>{lang mkey='signup_lastname'}               
{if $config.lastname_mandatory == 'Y' or $config.lastname_mandatory == '1'}                  
<font class="required_info">{$smarty.const.REQUIRED_INFO}</font>               
{/if}               
</td>               
<td> <input class="textinput" maxlength="50" name="txtlastname" value="{$smarty.session.lastname}" /> </td>            
</tr>         
{/if}

Is that all that is required?  any extra code that needs removing/changing?

Next when Couple or Group is selected an extra Text Box appears with: 

A couple or group comprises of two or more individuals. Please enter the usernames of the members of this couple or group in the text field below. For example: user_1,user_2,user_3. These users must already have individual member profiles.

I would like to remove this Couple - Group extra Text Box requirment,

How to remove?  I have been looking through the signup.tpl seems to be a script involved.

Your help greatly appreciated :)


*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #12 on: January 27, 2015, 04:25:11 AM »
Hi Phil,

I am wanting to simplify the User Signup

So I have removed Last Name: code from the signup.tpl

Line 197:

{if $config.accept_lastname == 'Y' or $config.accept_lastname == '1'}   
<tr>               
<td>{lang mkey='signup_lastname'}               
{if $config.lastname_mandatory == 'Y' or $config.lastname_mandatory == '1'}                  
<font class="required_info">{$smarty.const.REQUIRED_INFO}</font>               
{/if}               
</td>               
<td> <input class="textinput" maxlength="50" name="txtlastname" value="{$smarty.session.lastname}" /> </td>            
</tr>         
{/if}

Is that all that is required?  any extra code that needs removing/changing?

Next when Couple or Group is selected an extra Text Box appears with: 

A couple or group comprises of two or more individuals. Please enter the usernames of the members of this couple or group in the text field below. For example: user_1,user_2,user_3. These users must already have individual member profiles.

I would like to remove this Couple - Group extra Text Box requirment,

How to remove?  I have been looking through the signup.tpl seems to be a script involved.

Your help greatly appreciated :)



Hi Burton,

Yes you can remove the last name sections like that, but go to the admin go to site global settings, go to the top and click Global Settings Group: bar and get the User Controls: then make sure the signup process says N not Y in the line both lines saying
Accept Last Name?   Y change to N   
Last Name to be made mandatory field?   Y Change to N

As for redesigning the signup for the couple or group, there is a detailed process for this here www.jolly-roger-consulting.com/osdate/ or buy the osDate 2.6.5 True Couples Mod
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Burton

  • ***
  • 128
Re: Help please - Deprecated Lines on Instalation
« Reply #13 on: January 27, 2015, 04:41:42 AM »
Hi Phil,

Thank you for your fast reply, and great information as always :)

The link you gave me is for the Couples Mod,

But I can not find a link, or any reference to the code changing you refereed to as "Detailed Process",

Thank you again :)

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Help please - Deprecated Lines on Instalation
« Reply #14 on: January 27, 2015, 05:23:13 AM »
Hi Phil,

Thank you for your fast reply, and great information as always :)

The link you gave me is for the Couples Mod,

But I can not find a link, or any reference to the code changing you refereed to as "Detailed Process",

Thank you again :)
Hi Burton,

Looks like the Detailed Process isn't there anymore, it's a very long process maybe buy the mod or look in this forum
for another answer.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35