<![CDATA[ Vapor Errors - My Forums]]> https://forums.modx.com/thread/?thread=81151 <![CDATA[Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447205 I'm trying to import a Revo site from a local VM to Cloud. I followed the instructions found at https://modxcloud.com/userguide/how-tos/import-sites-with-vapor.html?ref=welcome-email but I'm getting the follow errors:
/var/www/html/vapor/
root@localhost:[branch [master]]-> ./vapor.php
-bash: ./vapor.php: Permission denied

/var/www/html/vapor/
root@localhost:[branch [master]]-> ls -la
total 36
drwxr-xr-x.  2 root   root    4096 Dec 13 16:00 .
drwxr-xr-x. 11 apache apache  4096 Dec 13 16:00 ..
-rw-r--r--.  1 root   root   25030 Oct 30 16:03 vapor.php

/var/www/html/vapor/
root@localhost:[branch [master]]-> chmod 777 vapor.php

/var/www/html/vapor/
root@localhost:[branch [master]]-> ./vapor.php
./vapor.php: line 1: ?php: No such file or directory
./vapor.php: line 2: /bin: is a directory
./vapor.php: line 3: vapor.php: command not found
./vapor.php: line 4: vapor.php: command not found
./vapor.php: line 5: vapor.php: command not found
./vapor.php: line 6: vapor.php: command not found
./vapor.php: line 7: vapor.php: command not found
./vapor.php: line 7: you: command not found
./vapor.php: line 8: vapor.php: command not found
./vapor.php: line 9: syntax error near unexpected token `('
./vapor.php: line 9: ` * Foundation; either version 2 of the License, or (at your option) any later'

What am I doing wrong?
Thanks!]]>
dwillis210 Dec 14, 2012, 10:04 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447205
<![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447756 Quote from: opengeek at Dec 19, 2012, 05:31 PM
The "path" settings and constants represent absolute physical file paths on the computer. The "url" settings and constants represent the path used by the web server (i.e. based on the document root) for the corresponding "path" setting/constant.
That makes perfect sense now that you've said it. lol

Must MODX_ASSETS_PATH be used in conjunction with the getOption() method the way you did in your example or can it be used anywhere like I did with MODX_ASSETS_URL? Also, is there a list of these constants somewhere?
Thank you very much for answering my questions!]]>
dwillis210 Dec 19, 2012, 11:52 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447756
<![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447750 opengeek Dec 19, 2012, 11:31 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447750 <![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447744
$modx->regClientCSS(MODX_ASSETS_URL."templates/ttuv3/css/flickrousel.css");
But it does not work with this:
include(MODX_ASSETS_URL."templates/ttuv3/phpFlickr-3.1/phpFlickr.php");
]]>
dwillis210 Dec 19, 2012, 10:48 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447744
<![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447708
$path = $modx->getOption('assets_path', $scriptProperties, MODX_ASSETS_PATH);
require_once $path . 'templates/ttuv3/phpFlickr-3.1/app.php';
]]>
opengeek Dec 19, 2012, 06:12 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447708
<![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447617 Quote from: opengeek at Dec 18, 2012, 03:53 PM
Quote from: dwillis210 at Dec 18, 2012, 03:50 PM
It turns out that a snippet I wrote depended on a library that did not make it to Cloud during the import process and this was causing the 500 error.
Can you share what library this was and where it was located in your environment? Just would like to know more about it.

Sure. It was the phpFlickr library (http://phpflickr.com/) and I had placed it under assets/templates/ttuv3/phpFlickr-3.1/. I just opened an SSH connection to look at the file system and it appears that the library did actually make it to Cloud. I referenced the absolute path in my snippet and that path obviously changed when I imported the site to Cloud. Is there a way to reference a relative path? I'm using an include statement and I tried adding MODX_ASSETS_URL to it like I do with my regClientCSS/JS method calls but it gave me errors so I used the absolute path instead.]]>
dwillis210 Dec 18, 2012, 10:53 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447617
<![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447611 Quote from: dwillis210 at Dec 18, 2012, 03:50 PM
It turns out that a snippet I wrote depended on a library that did not make it to Cloud during the import process and this was causing the 500 error.
Can you share what library this was and where it was located in your environment? Just would like to know more about it.]]>
opengeek Dec 18, 2012, 09:53 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447611
<![CDATA[Re: Vapor Errors (Best Answer)]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447609 did not make it to Cloud during was being referenced with an absolute path that changed after the import process and this was causing the 500 error.]]> dwillis210 Dec 18, 2012, 09:50 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447609 <![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447210 dwillis210 Dec 14, 2012, 10:38 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447210 <![CDATA[Re: Vapor Errors]]> https://forums.modx.com/thread/81151/vapor-errors#dis-post-447207 dwillis210 Dec 14, 2012, 10:21 AM https://forums.modx.com/thread/81151/vapor-errors#dis-post-447207