DDMS Unexpected error

展开阅读全文

syntax error, unexpected '' 的解决办法?

10-04

在学习用ThinkPHP框架,做了一个注册与登陆的小东西rnrnrndisplay("login"); rn rn function login() rn if(md5($_POST['verify'])!=$_SESSION['verify']) rn $this->error("验证码错误"); rn rn //实例化自定义模型 M('User')实例化基础模型 rn $user=D("Userinfo"); rn if($user->create()) rn //执行插入操作,执行成功后,返回新插入的数据库的ID rn if($user->add()) rn $this->success("注册成功"); rn else rn $this->error("注册失败"); rn rn else rn //把错误信息提示给用户看 rn $this->error($user->getError()); rn rn rn //生成图片验证码 rn function verify() rn //导入图形处理类库 rn import("ORG.Util.Image"); rn //import("@.ORG.Image"); rn //生成图形验证码 rn //实现英文验证码 rn image::buildImageVerify(4,1,'gif',60,22,'verify'); rn //实现中文验证码 rn //image::GBVerify(); rn rn rnrnrnrnrnrnrnrnrnrnrnrn对应的login.htmlrnrnrn rn rn rn rn 注册 rn rn rn rn rn 注册信息 rn rn rn rn 用 户 名: rn rn rn rn rn rn 昵 称: rn rn rn rn rn 密 码: rn rn rn rn rn 确认密码: rn rn rn rn 性 别: rn rn rn rn 生 日: rn rn rn rn rn 邮 箱: rn rn rn 现 居 地: rn rn rn rnrnrnrn rn rn 验 证 码: rn rn 看不清楚 rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrnrn昨天做的注册,今天做完登录想测试一下,结果就出问题了rnrnrn点击注册之后一直提示rnrnrn[img=https://img-bbs.csdn.net/upload/201310/04/1380872252_940991.gif][/img]rnrnrn而且我一直也没找到问题出在哪里,昨天还好好的,求求大神帮个忙rn 论坛

Parse error: syntax error, unexpected T_ELSE

10-22

rn求助 第121行到底哪里错了rnrn Parse error: syntax error, unexpected T_ELSE, expecting T_WHILE in E:\********\**** on line 121rnrnrn[code=PHP]helper( "admincp,license" );rndefine( "MUDDER_ADMIN", MUDDER_CORE."admin".DS );rn$_G['loader']->model( "admin", FALSE );rn$_G['admin'] =& $_G['loader']->model( "cpuser" );rn$admin =& $_G['admin'];rnif ( _get( "logout" ) )rnrn $admin->logout( );rn exit( );rnrnif ( empty( $admin->access ) )rnrn if ( !$_POST['loginsubmit'] )rn rn include( MUDDER_ADMIN."cplogin.inc.php" );rn exit( );rn rn $admin->login( );rnrnelse if ( $admin->access == "1" )rnrn if ( !_post( "admin_pw" ) && md5( _post( "admin_pw" ) ) != $admin->password )rn rn include( MUDDER_ADMIN."cplogin.inc.php" );rn exit( );rn rn $admin->update_sessions( );rn redirect( "admincp_login_wait", SELF );rnrnelse if ( $admin->access == "2" )rnrn redirect( "admincp_login_op_without", SELF."?logout=yes" );rnrnelse if ( $admin->access == "3" )rnrn redirect( "admincp_cpuser_colsed", SELF."?logout=yes" );rnrnelse if ( $admin->access == "4" )rnrn redirect( lang( "admincp_cpuser_city_access", $REE2F6A197E455A22562E4E6EB2A333C2['name'] ), SELF."?logout=yes" );rnrnif ( empty( $admin->id ) || $admin->id < 0 || !$admin->isLogin )rnrn redirect( "admincp_not_login", SELF );rnrn$module = _input( "module" );rn$act = _input( "act" );rn$in_ajax = 0;rn$in_ajax = _input( "in_ajax" );rn$_G['loader']->helper( "form" );rnif ( empty( $module ) || $module == "modoer" )rnrn dorn rn $module = "modoer";rn if ( empty( $act ) )rn rn $tab = "home";rn echo "\r\n\r\n ";rn echo lang( "admincp_title" );rn echo "\r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n";rn exit( 0 );rn rn if ( !$admin->check_access( "modoer" ) || !in_array( $act, array( "cpheader", "cpmenu", "cphome", "help", "admin" ) ) )rn rn redirect( "global_op_access" );rn rn $RE8075232DAAE3481BAEFB25BCC782D6C = MUDDER_ADMIN.$act.".inc.php";rn if ( !is_file( $RE8075232DAAE3481BAEFB25BCC782D6C ) )rn rn show_error( lang( "global_file_not_exist", "[ADMIN_DIR]".DS.$act.".inc.php" ) );rn rn include( $RE8075232DAAE3481BAEFB25BCC782D6C );rn $R9702B7A88A910873E2263A41450DC9B5 = array( "cpheader", "cpmenu" );rn if ( !$in_ajax || !in_array( $act, $R9702B7A88A910873E2263A41450DC9B5 ) )rn rn cpheader( );rn rn if ( $admin->tplname )rn rn if ( !is_file( MUDDER_CORE.$admin->tplname ) )rn rn show_error( sprintf( lang( "global_file_not_exist" ), $admin->tplname ) );rn rn include( MUDDER_CORE.$admin->tplname );rn rn if ( !$in_ajax )rn rn if ( in_array( $act, $R9702B7A88A910873E2263A41450DC9B5 ) )rn rn break;rn rn elsern rn cpfooter( );rn rn rn rn else if ( isset( $_G['modules'][$module] ) )rn rn if ( !$admin->check_access( $module ) )rn rn redirect( "global_op_access" );rn rn $RC068ABF2DAB8261A35D84F5EBF50C6E6 = "modules".DS.$module;rn require_once( MUDDER_CORE.$RC068ABF2DAB8261A35D84F5EBF50C6E6.DS."common.php" );rn if ( preg_match( "/^[0-9a-z\\_\\.]+\$/i", $act ) )rn rn $RE8075232DAAE3481BAEFB25BCC782D6C = MOD_ROOT."admin".DS.$act.".inc.php";rn if ( !is_file( $RE8075232DAAE3481BAEFB25BCC782D6C ) )rn rn show_error( lang( "global_file_not_exist", $_G['modules'][$module]['directory'].DS."admin".DS.$act.".inc.php" ) );rn rn include( $RE8075232DAAE3481BAEFB25BCC782D6C );rn if ( !$in_ajax )rn rn cpheader( );rn rn if ( $admin->tplname )rn rn if ( !is_file( MUDDER_CORE.$admin->tplname ) )rn rn show_error( lang( "global_file_not_exist", $admin->tplname ) );rn include( MUDDER_CORE.$admin->tplname );rn rn include( MUDDER_CORE.$admin->tplname );rn rn if ( $in_ajax )rn rn break;rn rn cpfooter( );rn rn elsern rn show_error( lang( "global_op_unkown" ) );rn rn rn elsern rn show_error( lang( "global_not_found_module", $module ) );rn while ( 0 );rnrn?>rn[/code] 论坛

Unexpected error parsing /WEB-INF/web.xml

12-19

我用Eclipse - Lomboz开发一个Web Application时,不小心把Tomcat弄坏了,重新安装了一下Tomcat,结果,再在Eclipse中启动,就出现了下面这个错误。但是把整个项目拷贝到Tomcat/Webapps下面,就不会出错。这是咋回事啊,大哥们… 谢谢你们了!rnrn错误报告如下:rn严重: Unexpected error parsing /WEB-INF/web.xml: java.io.FileNotFoundExceptionrnjava.io.FileNotFoundExceptionrn at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:297)rn at com.sun.faces.config.WebXmlParser.getFacesServletMappings(WebXmlParser.java:115)rn at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:180)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:551)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)rn2006-12-19 11:15:46 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenerrnjavax.faces.FacesException: Unexpected error parsing /WEB-INF/web.xml: java.io.FileNotFoundExceptionrn at com.sun.faces.config.WebXmlParser.getFacesServletMappings(WebXmlParser.java:123)rn at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:180)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)rn at org.apache.catalina.core.StandardService.start(StandardService.java:450)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:551)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)rnCaused by: java.io.FileNotFoundExceptionrn at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:297)rn at com.sun.faces.config.WebXmlParser.getFacesServletMappings(WebXmlParser.java:115)rn ... 16 more 论坛

没有更多推荐了,返回首页