|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Cartoweb error.
Hello to everyone!
I try to run a project and get the following error message. Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\ms4w\apps\cartoweb3\common\StructHandler.php(47)
: eval()'d code on line 1
_______________________________________________ Cartoweb-users mailing list Cartoweb-users@... http://lists.maptools.org/mailman/listinfo/cartoweb-users |
|
|
Re: Cartoweb error.Νίκος Παπαδάκης wrote:
> Hello to everyone! > I try to run a project and get the following error message. > > > *Parse error*: syntax error, unexpected T_OBJECT_OPERATOR in > *C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : eval()'d code* on > line *1* > > *Warning*: Cannot modify header information - headers already sent by > (output started at C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : > eval()'d code:1) in *C:\ms4w\apps\cartoweb3\client\FormRenderer.php* on > line *460 > * as the code /** * Returns a structure from an array loaded from a .ini * * Value of key my.little.key will be stored in structure->my->little->key. * @param array * @return stdClass */ static public function loadFromArray($array) { $struct = new stdclass(); foreach($array as $key => $value) { $tokens = explode('.', $key); $path = implode('->', $tokens); $expr = "\$struct->$path = \"$value\";"; >>>>line 47 eval($expr); } return $struct; } This would indicate an error in the .ini you use ... Be carefull with ini myvalue = 'Someting,other,another,' isn't valid due to the quotes ... -- Bruno Friedmann Ioda-Net Sàrl - www.ioda-net.ch 2830 Vellerat - Switzerland Tél : ++41 32 435 7171 Fax : ++41 32 435 7172 gsm : ++41 78 802 6760 C'est Facile et Cool d'Évoluer en ligne : www.cfcel.com _______________________________________________ Cartoweb-users mailing list Cartoweb-users@... http://lists.maptools.org/mailman/listinfo/cartoweb-users |
|
|
Re: Cartoweb error.Well,i checked all .ini files and also compared their syntax with the .ini files from the foss4g example and i haven't put any quotes at all!Νίκος Παπαδάκης wrote: but the problem insists! Is there anything else i could check? _______________________________________________ Cartoweb-users mailing list Cartoweb-users@... http://lists.maptools.org/mailman/listinfo/cartoweb-users |
|
|
Re: Cartoweb error.I quote the whole error message with the backtrace... Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : eval()'d code on line 1 Warning: Cannot modify header information - headers already sent by (output started at C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : eval()'d code:1) in C:\ms4w\apps\cartoweb3\client\FormRenderer.php on line 460 FailureCartoWeb version: 3.4.0 [$Revision: 1.7 $]
class: SoapFaultWrapper
message: Object to unserialize has no className attribute, and no class name was given:
Backtrace:
file: 215 - C:\ms4w\apps\cartoweb3\common\CwSerializable.php
call: CwSerializable::guessClassName(Null)
file: 255 - C:\ms4w\apps\cartoweb3\common\CwSerializable.php
call: CwSerializable::unserializeObject(Object(stdClass), Null, Null)
file: 630 - C:\ms4w\apps\cartoweb3\coreplugins\layers\common\Layers.php
call: CwSerializable::unserializeObjectMap(Object(stdClass), "layers")
file: 427 - C:\ms4w\apps\cartoweb3\coreplugins\layers\server\LayersInitProvider.php
call: LayersInit->unserialize(Object(stdClass))
file: 355 - C:\ms4w\apps\cartoweb3\coreplugins\layers\server\ServerLayers.php
call: LayersInitProvider->getInit()
file: 167 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php
call: ServerLayers->getInit()
file: UNKNOWN - UNKNOWN
call: InitProviderHelper->getInitHelper(Object(ServerLayers))
file: 267 - C:\ms4w\apps\cartoweb3\common\PluginManager.php
call: call_user_func_array(Array(2), Array(1))
file: 285 - C:\ms4w\apps\cartoweb3\common\PluginManager.php
call: PluginManager->callPluginImplementing(Object(ServerLayers), "InitProvider", "getInit", Array(0))
file: 166 - C:\ms4w\apps\cartoweb3\server\MapInfoHandler.php
call: PluginManager->callPluginsImplementing("InitProvider", "getInit")
file: 49 - C:\ms4w\apps\cartoweb3\server\ServerMapInfoCache.php
call: MapInfoHandler->loadMapInfo()
file: 163 - C:\ms4w\apps\cartoweb3\common\MapInfoCache.php
call: ServerMapInfoCache->computeMapInfo()
file: 177 - C:\ms4w\apps\cartoweb3\server\MapInfoHandler.php
call: MapInfoCache->getMapInfo()
file: 396 - C:\ms4w\apps\cartoweb3\server\ServerContext.php
call: MapInfoHandler->getMapInfo()
file: 191 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
call: ServerContext->getMapInfo()
file: 349 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
call: Cartoserver->doGetMapInfo("mytest.mytest")
file: 389 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php
call: Cartoserver->callWithExceptionCheck("doGetMapInfo", "mytest.mytest")
file: 104 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
call: Cartoserver->getMapInfo("mytest.mytest")
file: 165 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
call: CartoserverService->callDirect("getMapInfo", "mytest.mytest")
file: 224 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php
call: CartoserverService->callFunction("getMapInfo", "mytest.mytest")
file: 60 - C:\ms4w\apps\cartoweb3\client\ClientMapInfoCache.php
call: CartoserverService->getMapInfo("mytest.mytest")
file: 163 - C:\ms4w\apps\cartoweb3\common\MapInfoCache.php
call: ClientMapInfoCache->computeMapInfo()
file: 757 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php
call: MapInfoCache->getMapInfo("mytest.mytest")
file: 413 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php
call: Cartoclient->getMapInfo()
file: 31 - C:\ms4w\apps\cartoweb3\htdocs\client.php
call: Cartoclient->__construct()
file: 3 - C:\ms4w\apps\cartoweb3\htdocs\mytest.php
call: require_once("C:\ms4w\apps\cartoweb3\htdocs\client.php")
_______________________________________________ Cartoweb-users mailing list Cartoweb-users@... http://lists.maptools.org/mailman/listinfo/cartoweb-users |
|
|
Re: Cartoweb error.hello,
check in yours *.ini files if you have # to comment a line. If so, remove this and replace with a ; regards, Olivier J. Νίκος Παπαδάκης a écrit : > Sorry for the multiple e-mails. > I quote the whole error message with the backtrace... > > > > *Parse error*: syntax error, unexpected T_OBJECT_OPERATOR in > *C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : eval()'d code* on > line *1* > > *Warning*: Cannot modify header information - headers already sent by > (output started at C:\ms4w\apps\cartoweb3\common\StructHandler.php(47) : > eval()'d code:1) in *C:\ms4w\apps\cartoweb3\client\FormRenderer.php* on > line *460* > > > Failure > > CartoWeb version: 3.4.0 [$Revision: 1.7 $] > class: SoapFaultWrapper > message: Object to unserialize has no className attribute, and no class name was given: > Backtrace: > > file: 215 - C:\ms4w\apps\cartoweb3\common\CwSerializable.php > call: CwSerializable::guessClassName(Null) > > file: 255 - C:\ms4w\apps\cartoweb3\common\CwSerializable.php > call: CwSerializable::unserializeObject(Object(stdClass), Null, Null) > > file: 630 - C:\ms4w\apps\cartoweb3\coreplugins\layers\common\Layers.php > call: CwSerializable::unserializeObjectMap(Object(stdClass), "layers") > > file: 427 - C:\ms4w\apps\cartoweb3\coreplugins\layers\server\LayersInitProvider.php > call: LayersInit->unserialize(Object(stdClass)) > > file: 355 - C:\ms4w\apps\cartoweb3\coreplugins\layers\server\ServerLayers.php > call: LayersInitProvider->getInit() > > file: 167 - C:\ms4w\apps\cartoweb3\server\ServerPluginHelper.php > call: ServerLayers->getInit() > > file: UNKNOWN - UNKNOWN > call: InitProviderHelper->getInitHelper(Object(ServerLayers)) > > file: 267 - C:\ms4w\apps\cartoweb3\common\PluginManager.php > call: call_user_func_array(Array(2), Array(1)) > > file: 285 - C:\ms4w\apps\cartoweb3\common\PluginManager.php > call: PluginManager->callPluginImplementing(Object(ServerLayers), "InitProvider", "getInit", Array(0)) > > file: 166 - C:\ms4w\apps\cartoweb3\server\MapInfoHandler.php > call: PluginManager->callPluginsImplementing("InitProvider", "getInit") > > file: 49 - C:\ms4w\apps\cartoweb3\server\ServerMapInfoCache.php > call: MapInfoHandler->loadMapInfo() > > file: 163 - C:\ms4w\apps\cartoweb3\common\MapInfoCache.php > call: ServerMapInfoCache->computeMapInfo() > > file: 177 - C:\ms4w\apps\cartoweb3\server\MapInfoHandler.php > call: MapInfoCache->getMapInfo() > > file: 396 - C:\ms4w\apps\cartoweb3\server\ServerContext.php > call: MapInfoHandler->getMapInfo() > > file: 191 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php > call: ServerContext->getMapInfo() > > file: 349 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php > call: Cartoserver->doGetMapInfo("mytest.mytest") > > file: 389 - C:\ms4w\apps\cartoweb3\server\Cartoserver.php > call: Cartoserver->callWithExceptionCheck("doGetMapInfo", "mytest.mytest") > > file: 104 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php > call: Cartoserver->getMapInfo("mytest.mytest") > > file: 165 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php > call: CartoserverService->callDirect("getMapInfo", "mytest.mytest") > > file: 224 - C:\ms4w\apps\cartoweb3\client\CartoserverService.php > call: CartoserverService->callFunction("getMapInfo", "mytest.mytest") > > file: 60 - C:\ms4w\apps\cartoweb3\client\ClientMapInfoCache.php > call: CartoserverService->getMapInfo("mytest.mytest") > > file: 163 - C:\ms4w\apps\cartoweb3\common\MapInfoCache.php > call: ClientMapInfoCache->computeMapInfo() > > file: 757 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php > call: MapInfoCache->getMapInfo("mytest.mytest") > > file: 413 - C:\ms4w\apps\cartoweb3\client\Cartoclient.php > call: Cartoclient->getMapInfo() > > file: 31 - C:\ms4w\apps\cartoweb3\htdocs\client.php > call: Cartoclient->__construct() > > file: 3 - C:\ms4w\apps\cartoweb3\htdocs\mytest.php > call: require_once("C:\ms4w\apps\cartoweb3\htdocs\client.php") > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Cartoweb-users mailing list > Cartoweb-users@... > http://lists.maptools.org/mailman/listinfo/cartoweb-users _______________________________________________ Cartoweb-users mailing list Cartoweb-users@... http://lists.maptools.org/mailman/listinfo/cartoweb-users |
|
|
Re: Cartoweb error.
O/H Olivier Johner έγραψε:
hello, check in yours *.ini files if you have # to comment a line. If so, remove this and replace with a ; regards, Olivier J. I checked this but there weren't any # in any of the *.ini files. _______________________________________________ Cartoweb-users mailing list Cartoweb-users@... http://lists.maptools.org/mailman/listinfo/cartoweb-users |
| Free Forum Powered by Nabble | Forum Help |