In 1.11.2, Microtiny wrong image-path [solved in 1.11.3]

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
janvl
Power Poster
Power Poster
Posts: 983
Joined: Wed Aug 13, 2008 10:57 am

In 1.11.2, Microtiny wrong image-path [solved in 1.11.3]

Post by janvl »

Hi,

I made a clean install of 1.11.2
did some "design" very very basic.

Made a few pages.

Now if I open a page in Microtiny and I want to load an image it shows the popup-window, I can select an image from directory /uploads/images if I click on insert the place-holder is there but no image.

Checking the HTML then I find
<img src="http:/www2/uploads/images/zoekknop.png" alt="" />

It should be
<img src="http:/www.versicherungsagentur-stadler.at/uploads/images/zoekknop.png" alt="" />

I run the site in a subdirectory www2 on the host.

I changed the config.php to

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'database-user with right name';
$config['db_password'] = 'the fitting password';
$config['db_name'] = 'the fitting database name';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Vienna';
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = false;
$config['db_port'] = 0;
$config['persistent_db_conn'] = 'true';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.versicherungsagentur-stadler.at';
$config['ssl_url'] = 'https://www.versicherungsagentur-stadler.at';
$config['root_path'] = '/is/htdocs/wp10566801_82DASFO894/www2';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/is/htdocs/wp10566801_82DASFO894/www2/tmp/cache';
$config['uploads_path'] = '/is/htdocs/wp10566801_82DASFO894/www2/uploads';
$config['uploads_url'] = 'http://www.versicherungsagentur-stadler.at/uploads';
$config['max_upload_size'] = 8000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'none';
$config['page_extension'] = '';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/is/htdocs/wp10566801_82DASFO894/www2/uploads/images';
$config['image_uploads_url'] = 'http://www.versicherungsagentur-stadler.at/uploads/images';
$config['ssl_uploads_url'] = '/uploads';
$config['locale'] = 'de_DE.utf8';
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
?>
I cleared the cache but I still get the same problem.

Where is this URL produced?
And how do I change it?

[edit]
The following PHP-error is in the logging, double www2

Code: Select all

[Tue Oct 16 11:07:08 2012] [error] [client 212.89.171.111] File does not exist: /is/htdocs/wp10566801_82DASFO894/www2/www2, referer: http://www.versicherungsagentur-stadler.at/admin/moduleinterface.php?mact=MicroTiny,,filepicker,0&_sx_=d5d1c64d&type=image&showtemplate=false
[edit 2]
De-installing Microtiny and installing again does not work.
Installing TinyMCE and changing to TinyMCE works.
Another clean-install does not have this problem.

Kind regards,
Jan
Last edited by janvl on Tue Nov 20, 2012 8:20 am, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1975
Joined: Mon Jan 29, 2007 4:47 pm

Re: Version 1.11.2, Microtiny wrong image-path

Post by Jo Morg »

janvl wrote:I changed the config.php to....
Compared to mine your config.php is HUGE!
CMSMS has defaults to the majority of these settings and should work with these out of the box...
I would revert to the default "after install" config.php. Also check Documentation: /doc/CMSMS_config_reference.pdf to see what you really need to change IF anything doesn't work properly. IIRC some of the settings you have are deprecated...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
janvl
Power Poster
Power Poster
Posts: 983
Joined: Wed Aug 13, 2008 10:57 am

Re: Version 1.11.2, Microtiny wrong image-path

Post by janvl »

Hi

this is a config.php like it was in former versions.

I had a small one too with about 6 lines.

I have an updated site and another clean install where I do not have this problem so I wonder what causes this, it must be a Microtiny specific problem.

Kind regards,
Jan
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Version 1.11.2, Microtiny wrong image-path

Post by Dr.CSS »

That is not a config.php from a clean install, it would never make that many lines in it, obviously some of your paths are incorrect...

Put the install folder from the version you use, run install/install.php but
IN STEP 5 DON'T CREATE TABLE OR INSTALL DEFAULT CONTENT this will fix any path problems...
janvl
Power Poster
Power Poster
Posts: 983
Joined: Wed Aug 13, 2008 10:57 am

Re: Version 1.11.2, Microtiny wrong image-path

Post by janvl »

Hi Dr. CSS

"That is not a config.php from a clean install"
That is right, I copied it from an install from a former version and corrected the path's and the DB connection.

I will strip it to the original from the clean install and see if TinyMCE keeps working.

I wonder why there is no way of completly de-installing MicroTiny.

During the weekend I may try running install again.

Kind regards,
Jan
janvl
Power Poster
Power Poster
Posts: 983
Joined: Wed Aug 13, 2008 10:57 am

Re: Version 1.11.2, Microtiny wrong image-path

Post by janvl »

One cannot de-install and install microtiny because there is no install-file for microtiny, nor in "downloads - modules" nor in forge.

So if de-installed I do not see a possibility to install again.

I now have another fresh install with the same problem.
I did some digging in the php-files and found that $fpurl (filepicker url) seems not to be set.

Does some one have an idea on how to tackle the problem otherwise then to install tinymce?

Regards,
Jan
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Version 1.11.2, Microtiny wrong image-path

Post by calguy1000 »

This is an issue with FileManager and ImageManager when in advanced mode, on some hosts.

I could not reproduce this issue on any of my test installs.
But could on a new test install on a remote server.

I'm looking into it, and hopefully get it fixed for 1.11.3
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
janvl
Power Poster
Power Poster
Posts: 983
Joined: Wed Aug 13, 2008 10:57 am

Re: Version 1.11.2, Microtiny wrong image-path

Post by janvl »

Hi,

thank you for confirming, I was getting doubts about myself.
I will put the user on TinyMCE for the time being.

Kind regards,
Jan
janvl
Power Poster
Power Poster
Posts: 983
Joined: Wed Aug 13, 2008 10:57 am

Re: Version 1.11.2, Microtiny wrong image-path

Post by janvl »

Hi,

I just 14-11-2012 23.30 made another clean install on the same kind of hosting with the same hoster and with 1.11.2.1 the path just after the install is [edit looks] ok.

I wonder, usually with installs Like this I build up the site under a temporarily root-url and after that the real root-url will be pointing to the site, is that a probable cause?

[EDIT 17.11]
I have to take that back. I am taking over content from a Plone-site into a CMSMS Site and the url-path in microtiny is wrong as described above.

Kind regards,
Jan
Locked

Return to “[locked] Installation, Setup and Upgrade”