close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Windows server path logic

Thread began 11/09/2017 3:40 pm by Steve | Last modified 11/13/2017 4:05 pm by Ray Borduin | 30 views | 4 replies |

Steve

Windows server path logic

Hello,
Has anyone encountered a condition on a windows server where you needed to place a Slash prior to the go to file name to bind the location to the domains root?

For instance, I am deploying a new Windows 2016 server and it requires the following to work:

$GoToPage = "/thanks.php";


but on my prior server running PHP 5.6 we used:

$GoToPage = "thanks.php";

no slash... Without the slash the redirect goes to http://thanks.php


Just curious if anyone else ran into this?

PHP7 condition maybe?

Sign in to reply to this post

Ray BorduinWebAssist

That sounds like a problem with our extension. Can you send me FTP access and a url to view?

Sign in to reply to this post

Steve

Thanks Ray but I'm moving a lot of domains and adding the leading slash sorted the problem and it has not surfaced on other sites so far.

One new issue that I see today is this error:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WA_AltClassIterator has a deprecated constructor in E:\Websites\***redacted***

<?php

//WA AltClass Iterator

class WA_AltClassIterator {
var $DisplayIndex;
var $DisplayArray;


function WA_AltClassIterator($theDisplayArray = array(1)) {
$this->ClassCounter = 0;
$this->ClassArray = $theDisplayArray;

}

function getClass($incrementClass) {
if (sizeof($this->ClassArray) == 0) return "";
if ($incrementClass) {
if ($this->ClassCounter >= sizeof($this->ClassArray)) $this->ClassCounter = 0;
$this->ClassCounter++;
}

if ($this->ClassCounter > 0)
return $this->ClassArray[$this->ClassCounter-1];
else
return $this->ClassArray[0];
}
}

?>
<?php
//WA Alternating Class
$WARRT_AltClass1 = new WA_AltClassIterator(explode("|", "WADAResultsRowDark|"));
?>




This is a php 7.1 condition it seems.

Sign in to reply to this post

Steve

How about SecurityAssist Authenticate User? Not php7 ready as it uses mysql_pconnect?

Do I need delete and regenerate or hand code to use MySQLi ?

Sign in to reply to this post

Ray BorduinWebAssist

So the deprecated message is just a naming convention thing. In class definitions instead of using:

class WA_AltClassIterator     {
var $DisplayIndex;
var $DisplayArray;


function WA_AltClassIterator


you now have to use:

class WA_AltClassIterator     {
var $DisplayIndex;
var $DisplayArray;


function __construct



It used to be that a function inside of the class that used the same name as the class would be treated as a constructor. They are deprecating that syntax and forcing you to use the function name __construct for your constructor function within a class.

I'd just turn off deprecated messages and ignore that one. It will still be supported until php8 and we are updating those in the next release.

The SecurityAssist authenticate user Server Behavior uses standard mysqli and isn't php7 ready. We already have the replacement function in the MySQLi server behaviors and in the next version the Security Assist wizard will use that one instead. For now you would have to reapply the server behaviors manually.

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...