<![CDATA[ 0.9.6 upgrade problems encountered - My Forums]]> https://forums.modx.com/thread/?thread=36382 <![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=4#dis-post-205207
The AjaxSearch is still not working and throwing the same error. Should I just hardcode the urls into that snippet? I tried it already and it didn’t seem to make a difference.]]>
ejcross Sep 26, 2007, 09:51 AM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=4#dis-post-205207
<![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=4#dis-post-205206 opengeek Sep 26, 2007, 09:11 AM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=4#dis-post-205206 <![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205205
MODx 0.9.6 rev:2767
Server API = CGI/FastCGI
PHP ver. 4.4.7
mySQL Client API version = 4.1.21

from my config.inc.php file, these values are hard coded in:

$base_url=’http://www.unionky911.org/’;
$base_path=’/data/12/1/136/35/1136687/user/1207121/htdocs/’;
$site_url=’http://www.unionky911.org/’;

and this portion of code is completely removed from the config.inc.php file:

// automatically assign base_path and base_url
if(empty($base_path)||empty($base_url)||$_REQUEST[’base_path’]||$_REQUEST[’base_url’]) {
$sapi= ’undefined’;
if (!strstr($_SERVER[’PHP_SELF’], $_SERVER[’SCRIPT_NAME’]) && ($sapi= @ php_sapi_name()) == ’cgi’) {
$script_name= $_SERVER[’PHP_SELF’];
} else {
$script_name= $_SERVER[’SCRIPT_NAME’];
}
$a= explode("/manager", str_replace("\\", "/", dirname($script_name)));
if (count($a) > 1)
array_pop($a);
$url= implode("manager", $a);
reset($a);
$a= explode("manager", str_replace("\\", "/", dirname(__FILE__)));
if (count($a) > 1)
array_pop($a);
$pth= implode("manager", $a);
unset ($a);
$base_url= $url . (substr($url, -1) != "/" ? "/" : "");
$base_path= $pth . (substr($pth, -1) != "/" && substr($pth, -1) != "\\" ? "/" : "");
// assign site_url
$site_url= ((isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’https://’ : ’http://’;
$site_url .= $_SERVER[’HTTP_HOST’];
if ($_SERVER[’SERVER_PORT’] != 80)
$site_url= str_replace(’:’ . $_SERVER[’SERVER_PORT’], ’’, $site_url); // remove port from HTTP_HOST
$site_url .= ($_SERVER[’SERVER_PORT’] == 80 || (isset ($_SERVER[’HTTPS’]) && strtolower($_SERVER[’HTTPS’]) == ’on’) || $_SERVER[’SERVER_PORT’] == $https_port) ? ’’ : ’:’ . $_SERVER[’SERVER_PORT’];
$site_url .= $base_url;
}

My .htaccess file is:


RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]

#BrowserMatch "MSIE" brokenvary=1
#BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
#BrowserMatch "Opera" !brokenvary
#SetEnvIf brokenvary 1 force-no-vary

#php_flag register_globals Off
]]>
ejcross Sep 26, 2007, 08:59 AM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205205
<![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205204 What is your base href set as? It appears to be set using some kind of relative URL...

Nevermind -- this is odd indeed, but that specific URL problem appears to be Ditto related; perhaps something in the Ditto templates? Or some other option on Ditto...]]>
opengeek Sep 26, 2007, 08:53 AM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205204
<![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205203
This is so weird that I am not sure what else to try or where else the problem might be... huh]]>
ejcross Sep 26, 2007, 08:24 AM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205203
<![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205202 ZAP Sep 25, 2007, 08:36 PM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205202 <![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205201 ejcross Sep 25, 2007, 08:28 PM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205201 <![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205200
The lines in AjaxSearch are like so:
include_once MODX_BASE_PATH . 'assets/snippets/AjaxSearch/includes/AjaxSearch.inc.php';
include MODX_BASE_PATH . 'assets/snippets/AjaxSearch/includes/templates.inc.php';


So in this case it’s the constant MODX_BASE_PATH that’s not right (and that will likely cause you problems elsewhere as well).]]>
ZAP Sep 25, 2007, 07:30 PM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205200
<![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205199
The part that makes me think it is something deeper is this:

main(/data/12/1/136/35/1136687/user/1207121/htdocs///assets/snippetsassets/snippets/AjaxSearch/AjaxSearch.php) [function.main]: failed to open stream: No such file or directory in /data/12/1/136/35/1136687/user/1207121/htdocs/index-ajax.php on line 29

Warning: main() [function.include]: Failed opening ’/data/12/1/136/35/1136687/user/1207121/htdocs///assets/snippetsassets/snippets/AjaxSearch/AjaxSearch.php’ for inclusion (include_path=’.:/usr/services/vux/lib/php’) in /data/12/1/136/35/1136687/user/1207121/htdocs/index-ajax.php on line 29

The bold parts of the error message are what have me puzzled as to why it isn’t recognizing the base url of the site and why it is plugging in the assets/snippets/ portion twice... really strange and I can’t pinpoint where it is getting triggered from...]]>
ejcross Sep 25, 2007, 07:14 PM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205199
<![CDATA[0.9.6 upgrade problems encountered]]> https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205198
// Set Snippet Paths
$snipPath = $modx->config['base_path'] . "assets/snippets/";

If you just hard-code the path in there AjaxSearch should work.

Your server may just be misconfigured and not returning the right values for the automatic path script to work with, but if you hard-code them you should be able to work around this.
]]>
ZAP Sep 25, 2007, 06:52 PM https://forums.modx.com/thread/36382/0-9-6-upgrade-problems-encountered?page=3#dis-post-205198