Yeni Spaw gerekli dosyaları ve URL'leri normalde otomatikman uyarlıyor. Beta test esnasında bu şekilde tüm sunucularda sorunsuz çalıştı.
Fakat bazı sunucularda bu uyarlama yapılamıyor olabilir, maalesef bunu test etmek için imkanımız yoktu...
Bu problem Spaw geliştiricilerin de bilgisinde ve kendileri bazı önlemleri almış durumdalar:
http://www.spaweditor.com/spaw/spaw2/docs/documentation/integrators.html Path Related Settings
These settings determine locations SPAW uses to load it's files. These are automatically calculated in most instances, but if you get errors in demo script or can't see button images, etc. this is where the problem most likely is.
DOCUMENT_ROOTSpecifies a file system path to the root directory of your website. On most Apache/PHP installations this is calculated automatically
SPAW_ROOTSpecifies a file system path to the SPAW directory. Automatically calculated.
SPAW_DIRSpecifies a path from web site root to the SPAW directory, that is if you access demo script by pointing your browser to
http://mydomain.com/spaw/demo/demo.php SPAW_DIR should be set to '/spaw/'. Automatically calculated
Bu demektir ki, /spaw/config/config.php dosyası elden ayarlanabilir, sorunu çözmek için. Söz edilen iptal edilmiş alanı aşağıda bulabilirsiniz:
/*
// semi-automatic path calculation
// comment the above settings of DOCUMENT_ROOT, SPAW_ROOT and SPAW_DIR
// and use this block if the above fails.
// set SPAW_DIR manually. If you access demo page by http://domain.com/spaw2/demo/demo.php
// then set SPAW_DIR to /spaw2/
SpawConfig::setStaticConfigItem('SPAW_DIR', '/spaw2/');
// and the following settings will be calculated automaticly
SpawConfig::setStaticConfigItem('SPAW_ROOT', str_replace("\\","/",realpath(dirname(__FILE__)."/..").'/'));
SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', substr(SpawConfig::getStaticConfigValue('SPAW_ROOT'),0,strlen(SpawConfig::getStaticConfigValue('SPAW_ROOT'))-strlen(SpawConfig::getStaticConfigValue('SPAW_DIR'))));
*/
/*
// under IIS you will probably need to setup the above paths manually. it would be something like this
SpawConfig::setStaticConfigItem('DOCUMENT_ROOT', 'c:/inetpub/wwwroot/');
SpawConfig::setStaticConfigItem('SPAW_ROOT', 'c:/inetpub/wwwroot/spaw2/');
SpawConfig::setStaticConfigItem('SPAW_DIR', '/spaw2/');
*/
Hangi şekilde ve neyin ayrı ayrı sunucularda ayarlanılmasını toptan söylemek mümkün değil. Bunu test ederek denemenizde yarar vardır.
Örneğin şu şekilde deneyebilirsiniz:Bu işaretleri /* ve */ ilgili kod bloğundan çıkarılması lazım.
Bundan sonra /spaw2/ dosya adı /spaw/ olarak değiştiriliyor.
Not1:Konuyla ilgili Spaw destek sitesinde birçok cevaplar mevcut, orada SPAW_ROOT girerek arama yapabilirsiniz.
Örneğin:
http://forums.solmetra.com/viewtopic.php?t=7965&highlight=spawrootNot2:Bu config.php tamamen bireysel olarak ayarlanabilir, yukarıdaki önerge de olduğu gibi. Olası pragmaMx güncellemelerinde bu dosya dahil olmayacaktır, ki böyle yapılmış olan değişikliklerin kalması için.