function.strpos error
I am trying to apply a template to a page. When I launch the page, I am getting an error (function.strpos). The page is http://www.1to1marketing-inc.com/test.php. My credentials and the page is attached.
 
 
     2/03/2016 7:56 am  |  #1 mrobben375515
2/03/2016 7:56 am  |  #1 mrobben375515  I am trying to apply a template to a page. When I launch the page, I am getting an error (function.strpos). The page is http://www.1to1marketing-inc.com/test.php. My credentials and the page is attached.
 2/03/2016 10:27 am  |  #2 Ray BorduinWebAssist
2/03/2016 10:27 am  |  #2 Ray BorduinWebAssist
        It looks like the full error is:
Warning: strpos() [
function.strpos: Empty needle in
/home/content/05/11651305/html/marketing1to1/CSSMenuWriter/cssmw_home/menu.php
on line 10
If you attach a copy of that menu.php file and I'll take a look.
Incidentally, this is just a warning and not an error.  An adequate solution may be to turn off warnings.
 2/03/2016 11:26 am  |  #3 mrobben375515
2/03/2016 11:26 am  |  #3 mrobben375515  Thanks for your help Ray. The file is attached.
 2/03/2016 11:40 am  |  #4 Ray BorduinWebAssist
2/03/2016 11:40 am  |  #4 Ray BorduinWebAssist
        Update line 10 to: if ($assumedRoot && strpos(strtolower($WA_thisFile), strtolower($assumedRoot)) === 0) {
 2/03/2016 11:48 am  |  #5 mrobben375515
2/03/2016 11:48 am  |  #5 mrobben375515  I added that line.  There is still another now.
Warning: strpos() [function.strpos]: Empty needle in /home/content/05/11651305/html/marketing1to1/CSSMenuWriter/cssmw_home/menu.php on line 6:
 2/03/2016 11:57 am  |  #6 Ray BorduinWebAssist
2/03/2016 11:57 am  |  #6 Ray BorduinWebAssist
        Try updating line 6 to:
if ($WA_localRoot && strpos($WA_curURL,strtolower($WA_localRoot)) === 0 && (strlen($WA_localRoot) >= strlen($WA_remoteRoot) || strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) {
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.