Sequel Search Server Behaviors Problem
This code was made with php-msql server behaviors - recordset
pull down's....
I have a form to search for firstname or lastname or both but
I'm not getting the right results
SELECT * FROM phonebook WHERE firstname LIKE %s and lastname
LIKE %s
problem 1 - if I have NOTHING in the form then *all* records
get returned
I guess the problem is with blank form fields?
Q: How can I fix this?
full query below...
still curious about this - thanks in advance
Similar Messages
-
Search Server Database problem
Hi,
I have a problem with a creation of a new search server database. (I use search1 default search server )
The command that I used is:
psadmin create-search-db -s search1 -u amadmin -d defaultand the log response is:
[#|2008-08-29T01:02:24.518+0200|GRAVE|SJS Portal Server|debug.com.sun.portal.search.admin.mbeans|ThreadID=210
; ClassName=com.sun.portal.search.admin.mbeans.Database; MethodName=create; |Error: Creating database default failed with 1|#]
[#|2008-08-29T01:02:24.521+0200|GRAVE|SJS Portal Server|debug.com.sun.portal.search.admin.mbeans|ThreadID=210
; ClassName=com.sun.portal.search.admin.mbeans.Database; MethodName=create; |Exception
com.sun.portal.admin.common.PSMBeanException
at com.sun.portal.search.admin.mbeans.Database.create(Database.java:400)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:203)
at com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper.invoke(MBeanServerInterceptorWrapper.java:512)
at com.sun.portal.admin.server.PortalServerLoggingInterceptor.invoke(PortalServerLoggingInterceptor.java:446)
at com.sun.jdmk.interceptor.ForwardingMBeanServerInterceptor.invoke(ForwardingMBeanServerInterceptor.java:357)
at com.sun.portal.admin.server.PASAccessControlInterceptor.invoke(PASAccessControlInterceptor.java:72)
at com.sun.cacao.agent.DispatchInterceptor.invoke(DispatchInterceptor.java:736)
at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.invoke(AccessControlInterceptor.java:618)
at com.sun.jdmk.JdmkMBeanServerImpl.invoke(JdmkMBeanServerImpl.java:764)
at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.invoke(InstrumDefaultForwarder.java:106)
at javax.management.remote.generic.ServerIntermediary.handleRequest(ServerIntermediary.java:280)
at javax.management.remote.generic.ServerIntermediary$PrivilegedRequestJob.run(ServerIntermediary.java:951)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.generic.ServerIntermediary$RequestHandler.handleMBSReqMessage(ServerIntermediary.java:727)
at javax.management.remote.generic.ServerIntermediary$RequestHandler.execute(ServerIntermediary.java:629)
at com.sun.jmx.remote.generic.ServerSynchroMessageConnectionImpl$RemoteJob.run(ServerSynchroMessageConnectionImpl.java:266)
at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
|#]I have the same problem using web console administration
thanks in advance
best regardsHello,
I am not sure on below thing, however what userid do you use while logging to psconsole.
i think might resolve the problem by using the same id in command line.
I have the same problem using web console administrationI think u r trying to say is psconsole not the web console admin. right?
regards,
sumant -
Hello,
I'm trying to have a couple of pages with restricted access
on our website.
Using DWMX2004 and Coldfusion on Windows XP.
I used the login server behavior to achieve this.
It seems to work fine when the user name (email address in
this case) and password are not in the database, redirecting to the
failed login page, but when the user and password are correct I get
an error message ("Variable MM_LOGINACTION is undefined") and the
redirection doesn't happen.
I'm far from an expert, and I'm struggling to understand the
code, especially the reason why a CGI variable is used...
Could anyone please help me ?
Thanks in advance.
Ann
Here is the code of my login page (which is not in the root
directory, but in a folder ../en/):
<cfif IsDefined("FORM.txtEmail")>
<cfset
MM_redirectLoginSuccess="brochures_download.cfm">
<cfset MM_redirectLoginFailed="brochures_new.cfm">
<cfquery name="MM_rsUser" datasource="Calliope">
SELECT UserEmail,UserPass FROM tblUsers WHERE
UserEmail='#FORM.txtEmail#' AND UserPass='#FORM.txtPass#'
</cfquery>
<cfif MM_rsUser.RecordCount NEQ 0>
<cftry>
<cflock scope="Session" timeout="30" type="Exclusive">
<cfset Session.MM_Username=FORM.txtEmail>
<cfset Session.MM_UserAuthorization="">
</cflock>
<cfif IsDefined("URL.accessdenied") AND false>
<cfset MM_redirectLoginSuccess=URL.accessdenied>
</cfif>
<cflocation url="#MM_redirectLoginSuccess#"
addtoken="no">
<cfcatch type="Lock">
<!--- code for handling timeout of cflock --->
</cfcatch>
</cftry>
<cfelse>
<cflocation url="#MM_redirectLoginFailed#"
addtoken="no">
</cfif>
<cfelse>
<cfset MM_LoginAction=CGI.SCRIPT_NAME>
<cfif CGI.QUERY_STRING NEQ "">
<cfset MM_LoginAction=MM_LoginAction & "?" &
XMLFormat(CGI.QUERY_STRING)>
</cfif>
</cfif>
<html>
<head>
</head>
<body>
<form
ACTION="<cfoutput>#MM_loginAction#</cfoutput>"
METHOD="POST" name="FORM">
<table width="100%" cellpadding="2" cellspacing="2">
<tr>
<td>Your email </td>
<td><input name="txtEmail" type="text"
id="txtEmail" size="65"></td>
</tr>
<tr>
<td>Password</td>
<td><input name="txtPass" type="text" id="txtPass"
size="8"></td>
</tr>
<tr>
<td> </td>
<td><input name="Login" type="submit" id="Login"
value="Login"></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>You need to ensure that sessions have been enabled in your
application.cfm
file.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"kangy" <[email protected]> wrote in message
news:[email protected]...
> Hello,
>
> I'm trying to have a couple of pages with restricted
access on our
> website.
> Using DWMX2004 and Coldfusion on Windows XP.
>
> I used the login server behavior to achieve this.
> It seems to work fine when the user name (email address
in this case) and
> password are not in the database, redirecting to the
failed login page,
> but
> when the user and password are correct I get an error
message ("Variable
> MM_LOGINACTION is undefined") and the redirection
doesn't happen.
>
> I'm far from an expert, and I'm struggling to understand
the code,
> especially
> the reason why a CGI variable is used...
> Could anyone please help me ?
> Thanks in advance.
> Ann
>
> Here is the code of my login page (which is not in the
root directory, but
> in
> a folder ../en/):
>
> <cfif IsDefined("FORM.txtEmail")>
> <cfset
MM_redirectLoginSuccess="brochures_download.cfm">
> <cfset MM_redirectLoginFailed="brochures_new.cfm">
> <cfquery name="MM_rsUser" datasource="Calliope">
> SELECT UserEmail,UserPass FROM tblUsers WHERE
> UserEmail='#FORM.txtEmail#'
> AND UserPass='#FORM.txtPass#'
> </cfquery>
> <cfif MM_rsUser.RecordCount NEQ 0>
> <cftry>
> <cflock scope="Session" timeout="30"
type="Exclusive">
> <cfset Session.MM_Username=FORM.txtEmail>
> <cfset Session.MM_UserAuthorization="">
> </cflock>
> <cfif IsDefined("URL.accessdenied") AND false>
> <cfset MM_redirectLoginSuccess=URL.accessdenied>
> </cfif>
> <cflocation url="#MM_redirectLoginSuccess#"
addtoken="no">
> <cfcatch type="Lock">
> <!--- code for handling timeout of cflock --->
> </cfcatch>
> </cftry>
> <cfelse>
> <cflocation url="#MM_redirectLoginFailed#"
addtoken="no">
> </cfif>
> <cfelse>
> <cfset MM_LoginAction=CGI.SCRIPT_NAME>
> <cfif CGI.QUERY_STRING NEQ "">
> <cfset MM_LoginAction=MM_LoginAction & "?" &
> XMLFormat(CGI.QUERY_STRING)>
> </cfif>
> </cfif>
> <html>
> <head>
> ...
> </head>
>
> <body>
> ....
> <form
ACTION="<cfoutput>#MM_loginAction#</cfoutput>"
METHOD="POST"
> name="FORM">
> <table width="100%" cellpadding="2"
cellspacing="2">
> <tr>
> <td>Your email </td>
> <td><input name="txtEmail" type="text"
id="txtEmail"
> size="65"></td>
> </tr>
> <tr>
> <td>Password</td>
> <td><input name="txtPass" type="text"
id="txtPass"
> size="8"></td>
> </tr>
> <tr>
> <td> </td>
> <td><input name="Login" type="submit"
id="Login"
> value="Login"></td>
> <td> </td>
> </tr>
> </table>
>
> </form>
> ...
> </body>
> </html>
>
>
> -
Delete Record server behavior problem
Hi all!
I'm such a painful situation, that I can't figure out, why my
Delete
Record form don't work as supposed.
It seems all things work (also gives message "You have
successfully
deleted the article."), but the problem is
that in the MySQL (5) database real deletion doesn't
occure...
I was walking along with very nice tutorial
(www.adobe.com/devnet/dreamweaver/articles/php_blog2_11.html)
if someone has time to think about...
I have all the steps (from the tutorial) done multiple times
and
result... no real deletion, despite "successfully deleted"
text :(
with regards,
andretaYeah! As always - if one is doing too much over and over,
then it's too
much of trouble.
I used sample delete_art.php(premade by Marius) file instead
of mine and
it worked!
If I was wondering what is different, then there was large
amount of
additional code in my file:
In pre-made sample is 200 lines versus 242 in mine :(
Differences(looked with Winmerge):
MINE(not working): Working:
(why my DW8 inserts session handling in this way?)
1)
$_SESSION['MM_Username'] = NULL;
session_unregister('MM_Username');
$_SESSION['MM_UserGroup'] = NULL;
session_unregister('MM_UserGroup');
$_SESSION['PrevUrl'] = NULL;
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
unset($_SESSION['PrevUrl']);
2)
if (!isset($_SESSION)) { session_start();
session_start();
3)
in NONworking: (in WORKING - nothing )
(NB! this was a double-code - i think because of the redoings
(?recordset deleting & recreating?) )
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "",
$theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
: $theValue;
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
: "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
4)
NONworking:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"><!--
InstanceBegin
template="/Templates/admintemplate.dwt.php"
codeOutsideHTMLIsLocked="false" -->
Working:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
5)
NonW:
<?php do { ?>
<tr class="topheader">
<td><?php echo $row_rsDeletedArticle['title_art'];
?></td>
Working:
<tr class="topheader">
<td><?php echo $row_rsDeletedArticle['title_art'];
?></td>
6)
NONW:
<td colspan="3"><?php echo
$row_rsDeletedArticle['text_art']; ?></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<?php } while ($row_rsDeletedArticle =
mysql_fetch_assoc($rsDeletedArticle)); ?>
</table>
<table width="30%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td><form id="delete" name="delete" method="post"
action="delete_art.php">
<input name="yes" type="submit" id="yes" value="yes"
/>
<input name="id_art" type="hidden" id="id_art"
value="<?php echo $row_rsDeletedArticle['id_art']; ?>"
/>
</form>
</td>
<td><form id="cancel" name="cancel" method="post"
action="list_art.php">
<input name="no" type="submit" id="no" value="No" />
</form>
</td>
</tr>
</table>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_rsDeletedArticle == 0) { // Show if
recordset empty ?>
<p>You have successfully deleted the
article.</p>
<form id="back" name="back" method="post"
action="list_art.php">
<input name="back" type="submit" id="back" value="Back"
/>
</form>
<?php } // Show if recordset empty
?><p> </p>
<!-- InstanceEndEditable --></td>
Working:
<td colspan="2"><p><?php echo
$row_rsDeletedArticle['text_art']; ?></p></td>
</tr>
<tr>
<td colspan="2"><table width="15%" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td><form action="delete_art.php" method="post"
name="delete" id="delete">
<input name="yes" type="submit" id="yes" value="Yes">
<input name="id_art" type="hidden" id="id_art"
value="<?php echo $row_rsDeletedArticle['id_art'];
?>">
</form></td>
<td><form action="list_art.php" method="post"
name="cancel" id="cancel">
<input name="no" type="submit" id="no" value="No">
</form></td>
</tr>
</table></td>
</tr>
</table>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_rsDeletedArticle == 0) { // Show if
recordset
empty ?>
<p>You have successfully deleted the
article.</p>
<form action="list_art.php" method="post" name="back"
id="back">
<input name="back" type="submit" id="back"
value="Back">
</form>
<?php } // Show if recordset empty ?>
<p> </p>
<p> </p> <p>
</p></td>
</tr>
Boo-oo-hh!
It's enough for now
Please can someone give me advices about what is wrong with
the nonworking
(I deleted the section 3 from nonworking but it anyway
doesn't work)
AndreTa wrote:
> Oh, sorry!
>
> additional information - working with DW8.0.2, PHP
5.1.6, and with the
> "blog" database with MySQL 4.1.14
> (have also MySQL 5.0 - havn't tried with this... I'll do
it after sweet
> dreams and hard workday i.e. tomorrow)
> In local PC WinXP, Apache 2.2.3
>
> andreta
>
> -
Hello all,
This is my first attempt to use Verity on my localhost and
I've run into a problem trying to create a collection via the CF
Administrator pages. Whenever I click on Data & Services >
Verity Collections I see the following error:
"Unable to retrieve collections from the Search Service.
Please verify that the ColdFusion Search Server is installed and
running."
I've taken the following troubleshooting steps:
- Checked to make sure Verity was installed
- Stopped and started the ColdFusion 8 Search Server services
- Ran the verity-install.bat again. When I did this I
recieved the following error: OpenService Failed: Access is Denied
I'm running Windows Visa Home Premium.
Any thoughts on how I can get Verity working on my local
machine would be most appreciated.
DHello all,
This is my first attempt to use Verity on my localhost and
I've run into a problem trying to create a collection via the CF
Administrator pages. Whenever I click on Data & Services >
Verity Collections I see the following error:
"Unable to retrieve collections from the Search Service.
Please verify that the ColdFusion Search Server is installed and
running."
I've taken the following troubleshooting steps:
- Checked to make sure Verity was installed
- Stopped and started the ColdFusion 8 Search Server services
- Ran the verity-install.bat again. When I did this I
recieved the following error: OpenService Failed: Access is Denied
I'm running Windows Visa Home Premium.
Any thoughts on how I can get Verity working on my local
machine would be most appreciated.
D -
"New Server Behavior ... " problems
I am trying to apply the "New Server Behavior ..." feature of
Dreamweaver 8 found under the Add Server Behavior tab. If I use a
variable and apply a Display As option set to Recordset Menu or
anything like that, I get an error message, "Error with 'Recordset
Menu' control: unable to locate required 'RecordsetMenu' control".
Trying to set the Display As option to Connection Table Menu gives
a similar, "Error with 'Connection table menu' control: unable to
locate required 'Connection menu' control".
Here is how you reproduce the problem.
Create a site using the MySQL-PHP server model.
Create a dynamic-PHP page using New from menu or Ctrl-N and
save it. Create a MySQL database connection.
Create a recordset from the Bindings tab. Use all the fields
from some table.
Under the Server Behaviors tab, Click the + sign to add "New
Server Behavior ..." Choose Document Type "PHP MySQL", give the
Server Behavior a name and click OK.
Click the + button to add a Code Block and click OK to insert
it into the window.
In the "Code Block:" windows replace the code block with
"<?php echo ?>" Add a space after echo and select "Insert
Parameter in Code Block". This should leave you with "<?php echo
@@Param1@@?>". Disregard the Insert Code options.
Click "Next...". The "Generate Behavior Dialog Box" comes up,
select the TextField in the dialog box window. An arrow suggesting
a menu should appear. Select "Recordset Field Menu" or any of the
Recordset options. Choosing a "Dynamic Text Field" may not generate
an error. Connection Table Menu or any of the Connection options
also generates an error. Try those too. Click OK to close the
Dialog Box. Save your php page.
The name you gave your Server Behavior after "Choose Document
Type ..." will now appear in the Server Behavior menu when you
click + in the Server Behaviors tab. With your php page having
focus, select your Server Behavior from the + menu and you should
get an error,
"Error with '<My Server Behavior Type>' control: unable
to locate required '<control type>' control"
Click OK, and you should see a menu come up for your behavior
with a blank menu.horsethiefbasin wrote:
> I know how to open a link in a new browser window by
going to the Behaviors
> panel. The site I'm working on is using PHP, so instead
of a Behaviors panel
> all it shows is a "Server Behaviors" panel. Under the
"Server Behaviors" there
> is't an option to open a link in a new browser window.
Should I be looking
> someplace different or is there another way to add this
function to a link?
>
> Thanks in advance for any help!
>
Makes no difference whether youre working on a php site or an
ordinary
htm site you still open a new browser window in exactly the
same way.
windows>behaviours>open browser window -
Problems with PHP and MySQLi server behaviors
Hi,
I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
Kind regards.
Eddyheduino wrote:
Hi,
I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
Kind regards.
Eddy
There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to thrid party developers to bring out extensions which replace them.
What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli. -
Clueless NEWBIE DEVELOPER, NEEDS ASSIST with Insert Record Server Behavior
Experienced DW designer learning CFMX7. I cannot seem to get
beyond this error message when using the Insert Record server
behavior to write data from a form into the database. Using MS
Access 2002, CFMX7's internal server, DW 6.0. Please note that I am
learning development for the first time and am using tutorials. I
was able to connect at one point but now I cannot.
See error message below:
The following information is meant for the website developer
for debugging purposes.
Error Occurred While Processing Request
Error Executing Database Query.
Syntax error in INSERT INTO statement.
Resources:
Enable Robust Exception Information to provide greater detail
about the source of errors. In the Administrator, click Debugging
& Logging > Debugging Settings, and select the Robust
Exception Information option.
Check the ColdFusion documentation to verify that you are
using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322)
Remote Address 127.0.0.1
Referrer
http://localhost:8500/moosek/TMPu724j3nl2j.cfm
Date/Time 07-Aug-06 07:23 PM
Text
TextMongoSlade,
I had this exact same problem with a CFMX 7 datasource that
was set up as Microsoft Access with Unicode. It turns out that
"Password" is a reserved word in the Unicode driver. Or somewhere.
I got around it by putting square brackets, i.e., [ ] around the
column name, like this:
update MyTable
set [Password] = '#form.Password#'
where UserID = '#form.UserID#'
That solved the problem nicely. I hope this solution will
work for you as well. -
I've successfully implemented the upload file server behavior. The file uploads, it is in the directory, if I delete the record through DW it also deletes the file in the directory so I know DW knows where the file is stored.
My problem is with the download file server behavior, I can't seem to configure it to make it work. It seems rather straight forward. My dynamic display list displays the records (rows) with the file names but they do not show as links, I cannot click on them. When I apply the download behavior, I see a generated "download" word added next to the display field on the page but this disappears when the page is actually displayed in a browser.
Any ideas?please provide us a complete vision of your script or what ever your are doing.
because you miss many things in your question such as what comes before this error or after it... thank you -
Cannot Edit Duplicate Server Behaviors (bugged?)
Okay, here's a problem:
I've got a user login page with two different forms on it -
one to log in new users, and one to log in existing users. I
applied a "log in user" server behavior to each of them. Now both
of these server behaviors are showing up under the Server Behaviors
menu with the exact same name: "Log In User". When I try to save
this file I get the following error:
The Server Behavior panel cannot determine whether "Log In
User" or "Log In User" is applied to your page. Please select the
Edit Server Behaviors and change one of the two behaviors to ensure
that each is uniquely identifiable.
Clicking on each of them points to the same block of code
(which logs in the existing user). I cannot delete them using the
minus sign. When I click on the plus sign and select "Edit Server
Behaviors" it shows me two other custom behaviors that I'd already
downloaded (and used on another page) but doesn't show me the "Log
In User" behavior at all.
Is there any way to edit these behaviors? Change the name of
one of them? Right now my page is working perfectly and I wouldn't
mind the error except for the fact that this page is based on a
template. Any template changes I make are not updating to this
page. . . perhaps there's a preference I could change that would
allow template changes even if an error is encountered?
Any help is appreciated. Thanks in advance!Sylvain; thank you for the reply. No, this issue impacts entries other than automount as well.
So far I have observed this with entries consisting of :
1) top/posixaccount/organizationalPerson/person/inetOrgPerson,
2) top/groupofuniquenames/posixgroup
3) top/iphost/nsHost
4) top/nisNetgroup
I have double/triple checked the schema and any log files as well to no avail.
I have opened SR 3-10281206831 related to this issue. -
ADDT file upload server behavior / file ownership on server
When using the ADDT file upload server behavior, I found out that the files stored on my server have the ownership "www-data www-data", where other files uploaded (with Dreamweaver or a FTP client) have the ownership "[mydomain] www-data.
This means I cannot manipulate these ADDT uploaded files with a FTP client like Filezilla or in the Dreamweaver file window, because I then get an error message saying I don't have the required permission for that operation (eg delete the file).
Any clue on how to solve this problem?
Thanks in advance,
ErikYou can also check with your host if they are running suexec. If they are you can possibly use a PHP-CGI wrapper in your script to have it create files/folders with the right permissions. It's more about the ownership of the php interpreter. Surprising though as I never seen ADDT have this kind of issue. I have seen this issue several times in hand written scripts by me where I don't do a lot of pre-checking.
-
I have a problem with my Dreamweaver 8.0.2....I can't get
validate form from the pop up menu in the server behavior window.
Where do I get it??
Help.mcmyke wrote:
> I have a problem with my Dreamweaver 8.0.2....I can't
get validate form from the pop up menu in the server behavior
window.
> Where do I get it??
> Help.
There is no validate form server behavior built into
Dreamweaver. Perhaps you'rr looking for the Validate Form in the
*Behaviors* (not Server behaviors) panel?
Danilo Celic
|
http://blog.extensioneering.com/
| Adobe Community Expert -
DW CS6 Not allowed me to select again the + in the server behaviors
I worked with server behaviors normally yesterday but today it has not allowed me to work with them.
- I work with the tables in the database.
- I checked the site definition and is correct.
- I work with links normally.
The system works normally, except the server behaviors.
What should I do to display the + in server behaviors?Hi, Ben:
The server is PHP and the document was opened with PHP.
I work with WAMP and the DB is MySql, I checked that It was active and was working properly.
The connection to the DB was fine, also checked the site definition and it was good, I could work with everything in DW except the server behaviors. I turned off the system several times, because it could have been any open document, which avoiding the continuity of my work, but every time the problem was there.
Today was concerned that the work I have to deliver is short in time and I have to say, by some miracle of God, the system is working well now, but I am very nervous because if the problem happens again, I do not know which is the solution.
Thanks a lot. -
Creating Login Pages - Server Behavior Issues
Hello,
I been trying to find a solution to this problem for this
past week.
I'm having issues with creating a login page. First, I get
the page created with a username text box, password text box, save
username checkbox, etc. Next, I add the server behavior for 'User
Auth' - 'Login User'. Now..here's the problem. When I complete
that, I get this error (SEE BELOW). Somehow the server behavior
duplicates. I can't go on until I make one of them unique from the
other. I tried every which way to delete it, but I can't. Any
suggestions?
SERVER BEHAVIOR ERROR
"The server behavior panel cannot determine whether "Log In
User" or "Log In User" is applied to your page. Please select Edit
Server Behaviors and change one of the 2 behaviors to ensure that
each is uniquely identifiable."
NOTE: By using the "-" sign above the panel, I can't remove
the duplicate.
Also, when I create a login page, I do need to insert a form
first("form1") and then place the username, password, checkbox
inside that "form1" form I just created, correct?
Thanks for all your help!
CraigGD WebDev wrote:
> Hi,
>
> I have set-up up a database based upon username,
password and security access
> level, the access level contains 3 types of groups.
group 1, group 2 and group
> 3.
>
> I've used the dreamweaver login user server behavior.
Looking at this it only
> allows you to go to one succeed page.
> Because i have got three user access levels, i'm looking
for it to send each
> set of users from each access level to three different
succeed pages.
> In other words, group 1 is sent to one succeed page,
group 2 is sent to a
> different and group 3 to another.
>
> Is there away of doing this?
>
You could do a redirect on the page that they do land on once
succeeded.
My personal preference would be to make one page, and only
show the user
groups parts of the page that they are allowed to see.
Steve -
Parse errors from server behaviors
I have created an input form for a mysql/php database set up on my testing server with a set of fields in a repeat region. All the fields are properly displayed when I switch to LiveView or browser preview. I am, however, having the following problem with server behaviors:
If I add “Display Total Records” at the bottom, it displays just fine, but if I try to add the behaviors for previous page, next page, starting record number or ending record number, I get this:
Parse error: syntax error, unexpected ';' in C:\XAMPP\htdocs\LEAP\admin.php on line 81
Lines 81-84 read:
$totalPages_VolApp = ceil($totalRows_VolApp/$maxRows_VolApp = 10;
$pageNum_VolApp = 0;
if (isset($_GET['pageNum_VolApp'])) {
$pageNum_VolApp = $_GET['pageNum_VolApp'];
I also cannot switch the repeat region to “show all records.” This results in a similar syntax error.
What is a parse error? What problem is indicated? thanks.What is a parse error? What problem is indicated? thanks.
It's an error in code. The error is in the following line:
$totalPages_VolApp = ceil($totalRows_VolApp/$maxRows_VolApp = 10;
That line is nonsense in PHP terms. It has almost certainly been created as a result of not removing server behavior code correctly when making changes to a page. You can't edit PHP code simply by selecting dynamic text in Design view and deleting it. To remove a server behavior cleanly, you need to select its name in the Server Behaviors panel and click the minus button.
The code you have posted here looks so badly corrupted, I suggest you start the page again.
Maybe you are looking for
-
Help regarding regular expression
HI All , Please see the following string String s = "IF ((NOT NUM4 IS ALPHABETIC ) AND NUM3 IS ALPHABETIC-UPPER AND (NUM5 IS GREATER OR EQUAL TO 3) AND (NUM5 IS NOT GREATER THAN 3) AND (NUM3 GREATER THAN 46) AND (NUM5 GREATER THAN NUM3) OR NUM3 LESS
-
Is there a way to really empty the Photo Library on an iPad?
I wanted to delete a couple hundred photos in the Photo Library on my iPad 3. In the Photos app on the iPad, I used the "tap-to-select" method and trashed some of the photos, but this was way too slow, so I connected the iPad to my iMac via USB cable
-
I've tried all the troubleshooting documents for iTunes for Windows and nothing works. The Help files in iTunes do not display - just blank windows. Ran the diagnostics and they say that a secure connection to iTunes store cannot be established, bu
-
I have a skype account But cant view it
I have an account but when I go to view it it says please wait for page to load. I get in once every 10 tries. Why cant I view my accounts?
-
Flash elements disappear after making updates (DW CS3)
Hi there, I have been having this problem for some time now and I've usually been able to create a work around, but now it's just really getting frustrating. I have websites that I've created using flash headers and have them set in my site templates