close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

function.strpos error

Thread began 2/03/2016 7:56 am by mrobben375515 | Last modified 2/04/2016 8:32 am by Ray Borduin | 1279 views | 6 replies |

mrobben375515

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.

Sign in to reply to this post

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Thanks for your help Ray. The file is attached.

Sign in to reply to this post

Ray BorduinWebAssist

Update line 10 to: if ($assumedRoot && strpos(strtolower($WA_thisFile), strtolower($assumedRoot)) === 0) {

Sign in to reply to this post
Did this help? Tips are appreciated...

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:

Sign in to reply to this post

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)) {

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

Thank you, that did it.

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