close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Scripts don't work on Godaddy Linux Hosting

Thread began 5/22/2012 3:58 pm by ingridfuller | Last modified 5/25/2012 1:13 pm by Jason Byrnes | 2608 views | 5 replies |

ingridfuller

Scripts don't work on Godaddy Linux Hosting

On my hosting the files work fine, but on Godaddy Linux Hosting, after I fill out the form and it emails me, it pops up with errors on the screen:


Deprecated: Function split() is deprecated

WAVT_Scripts_PHP.php on line 327

MailFormatting_PHP.php on line 42

I tried replacing the splits to explode, but that didn't help. So are you going to have a new version to fix the splits soon? One of my programmers said we will have this same issue on our newest server that we're about to go live on.

Sign in to reply to this post

Mike_GoDaddy

The split() function has deprecated as of PHP 5.3.0. If you need the warning not to pop up you can change the PHP version to 5.2. If you need PHP 5.3 you can set error reporting lower in your php.ini file (errorfunc.configuration.php#ini.error-reporting).

To Change Your PHP Version

From the Content menu, select Programming Languages.
Select the PHP version you want to use, and then click Continue.
Click Update.

The deprecated warning indicates that PHP's developers may not continue to support the function. The preg_split() or str_split() functions are now the preferred alternatives to split().

Sign in to reply to this post

Jason ByrnesWebAssist

in the MailFormatting_PHP.php file., change line 42:

php:
$domArr = split("\.",$domainName);



to:

php:
$domArr = explode("\.",$domainName);



and in the WAVT_Scripts_PHP.php file, change line 327

php:
$domArr = split("\.",$domainName);



to:

php:
$domArr = explode("\.",$domainName);




this should fix the errors you are getting. When you say:
"I tried replacing the splits to explode, but that didn't help"

do you mean it didnt fix the error? or the email still did not go through?

GoDaddy can be a bit tricky sometimes.

make sure you have set the email server in the globals file to:
smtp.secureserver.net

also try changing line 9 in your WA_Universal_Email/WAUE_contact_1.php file From:

php:
$MailFrom = "".((isset($_POST["Email_address"]))?$_POST["Email_address"]:"") ."";



to

php:
$MailFrom = "web@mydomain-name.com";



where web@mydomain-name.com is a valid email for your domain.

and line 15 from:

php:
$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","","","","");



to

php:
$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","80","","","","");
Sign in to reply to this post

ingridfuller

Still problems

First I tried what Mike said to do (error reporting).
Added error_reporting = 0 in php.ini file, that didn't work.
Added display_reporting = 0 in php.ini file, that didn't work.
So I decided to go back and try Jason's suggestions to change the programs.

I changed all lines suggested except the email server that was listed in php.ini as relay-hosting.secureserver.net (which is what we were given so I used that in WA Globals file)

Now I get this:
* Please provide your email addess so we can get back in touch with you.

On the good email address that has been working fine. Never let's me get pass the Captcha.

Sign in to reply to this post

ingridfuller

Why doesn't Webassist fix their program for us?

I paid for this program and I don't understand why WebAssist isn't fixing this instead of me having to fix it myself. I would think you would keep up with updates on this product.

split

Warning
This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...