close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error Message

Thread began 4/06/2010 10:26 am by mrobben375515 | Last modified 4/26/2010 2:49 pm by Jimmy Wu | 2898 views | 12 replies |

mrobben375515

Error Message

I just created a new php doc and got the following error message...

Warning: strpos() [function.strpos]: Empty delimiter in /home/content/o/n/e/onetoonemktg/html/upload_failed.php on line 186

here's the url...upload_failed.php

what causes this?

Sign in to reply to this post

Jimmy Wu

It looks like you're not using strpos correctly on the page:
str_pos

It could be an issue like this:
3782096.htm

How did you create the page and what modifications did you make?

Sign in to reply to this post

mrobben375515

I created a new php doc, saved and applied the template, and the only changes were I put an <h1> heading and a <p> paragraph in. That's all I did. It's a brand new page, I don't have any idea what went wrong...

Sign in to reply to this post

Jimmy Wu

It looks like you've made quite a few changes to the template. If you post the page, I can try taking a look at the file and see if I can tell what's wrong.

Sign in to reply to this post

mrobben375515

here are the files...thanks

Attached Files
files.zip
Sign in to reply to this post

mrobben375515

Any luck finding the error?

Sign in to reply to this post

Jimmy Wu

The line of code looks fine to me. If you detach the page from the template, then make modifications so line 186 looks like this instead:
if ((strpos($WA_curURL,strtolower($WA_localRoot)) !== false &&
strpos($WA_curURL,strtolower($WA_localRoot)) == 0) &&
(strlen($WA_localRoot) >= strlen($WA_remoteRoot) ||
strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) {

Then the line number the error points at will let us know which strpos call is causing the error.

Sign in to reply to this post

mrobben375515

sorry, i didn't see that you had replied. here's the error I get now


Warning: strpos() [function.strpos]: Empty delimiter in /home/content/o/n/e/onetoonemktg/html/upload_failed.php on line 178
if ((strpos($WA_curURL,strtolower($WA_localRoot)) !== false && strpos($WA_curURL,strtolower($WA_localRoot)) == 0) && (strlen($WA_localRoot) >= strlen($WA_remoteRoot) || strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) { Register

the page is upload_failed.php

Sign in to reply to this post

Jimmy Wu

What is the code on line 178?

Sign in to reply to this post

mrobben375515

if ((strpos($WA_curURL,strtolower($WA_localRoot)) !== false && strpos($WA_curURL,strtolower($WA_localRoot)) == 0) && (strlen(

the whole php string is...

<?php
$WA_localRoot = "".$WAGLOBAL_localRoot."";
$WA_remoteRoot = "".$WAGLOBAL_remoteRoot."";
$WA_curURL = strtolower((isset($_SERVER["PHP_SELF"]))?$_SERVER["PHP_SELF"]:"");
$assumedRoot = $WA_remoteRoot;
if ((strpos($WA_curURL,strtolower($WA_localRoot)) !== false && strpos($WA_curURL,strtolower($WA_localRoot)) == 0) && (strlen($WA_localRoot) >= strlen($WA_remoteRoot) || strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) {
$assumedRoot = $WA_localRoot;
}
?>

Sign in to reply to this post
loading

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