Internationalization Problems - Change Langueage Button | Temp Dir

Permalink
I've installed this wonderful add-on and this shows when the Change Language button block is added:

Warning: realpath(): open_basedir restriction in effect. File(C:\Windows\Temp) is not within the allowed path(s): (d:/) in D:\http\ls.suporte.com.pt\concrete\libraries\3rdparty\Zend\Cache\Backend.php on line 159

Well Korvin from Support recommended on how to solve this:

"Add TMPDIR to your environment variables, and have it point to something like D:/tmp/ and create that folder."

The support ends here, since the problem is not the add-on it self.

So not knowing what on earth "environment variables" were, I've searched, logged in the SQL server, and came to the conclusion this was something on the server and I've found this settings: check attached pic.

Following this, I created the referred directory on the FTP server ( uniserver/tmp )

Then I reinstalled ALL Concrete 5 and the Internationalization add-on.

So now, when I configure the add-on - I Define 2 Languages with 2 Pages - both pages defined for language root do NOT show the top C5 bar, only show it grey without Edit Button, Dashboard button...

Also, adding the Change Language button happens the same stuff:

Warning: realpath(): open_basedir restriction in effect. File(C:\Windows\Temp) is not within the allowed path(s): (d:/) in D:\http\ls.suporte.com.pt\concrete\libraries\3rdparty\Zend\Cache\Backend.php on line 159
Choose Language

I'm lost here, whenever I think "Now I will use C5 to do this big site and use also multi-languages" something happens, it's never smooth, I always have to find how to solve problems.

If the site is simple, all is ok, but a bit more difficult site and errors come up. I'm even afraid of using other themes than the default ones.

Anyway, is this easy to solve?

Because I'm by a thin line of trying any other CMS and see if it's more error free than this.

Envirnment Info:

# concrete5 Version
5.5.2.1

# concrete5 Packages
Internationalization (1.1.3).

# concrete5 Overrides
None

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.3.6

# PHP Extensions
apache2handler, bcmath, calendar, com_dotnet, Core, ctype, curl, date, dom, eAccelerator, ereg, exif, filter, ftp, gd, hash, iconv, imap, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, Phar, Reflection, session, SimpleXML, sockets, SPL, SQLite, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 32M
post_max_size - 60M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - .;D:/uniserver/usr/local/php/includes;D:/uniserver/usr/local/php/pear
sql.safe_mode - Off
upload_max_filesize - 60M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

1 Attachment

pdcouto
 
pmarques replied on at Permalink Reply
pmarques
Hello,

Sorry to hear about your troubles, please don't give up!

I think I know what Korvin was refering to when he talked about environment variables - this is something you do on the windows server.

On Windows 7 you get there the following way:
- Start menu
- Right click on "Computer", Properties
- Advanced system settings
- Environment variables

Remember that Concrete5 is not officially supported on Windows servers, so some problems are expected to occur. That specific error seems to be happening because the temp folder is set to a different disk than the installation, which may be a security risk. That's why Korvin is telling you to create a temp folder on disk D.

As for the themes, it's extremely easy to "concretize" any css template you get from the web, please see this:
http://www.concrete5.org/documentation/how-tos/designers/make-a-the...

I have also lost some time to understand how the internationalization add-on works. I've got it figured out now. If you keep having trouble just let me know and I'll give you a step-by-step introduction to it.

Best of luck!
pdcouto replied on at Permalink Reply
pdcouto
Thanks pmarques! I think I solved the problem, but it's difficult for me to understand why this kind of thing isn't covered.

Even for me who got some patience it's difficult to solve these things, so I can imagine that some other people with little knowledge on CMS - or SQL server, or CSS - tens to quit because of these issues.
pdcouto replied on at Permalink Reply
pdcouto
For now the problem seems solved:

http://www.concrete5.org/community/forums/internationalization/c5-4...

Changes on the code were made here:

protected $_options = array(
        'cache_dir' => 'mytempdirectorypath',
        'file_locking' => true,
        'read_control' => true,
        'read_control_type' => 'crc32',
        'hashed_directory_level' => 0,
        'hashed_directory_umask' => 0700,
        'file_name_prefix' => 'zend_cache',
        'cache_file_umask' => 0600,
        'metadatas_array_max_size' => 100
    );


Please find more info on the above link