Problem with Add New Article

Please post all install related problems here. Visit this forum first for troubleshooting.
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Problem with Add New Article

Post by cRYOa »

Hello,

I searched the forum but couldn't find an answer that fixes this for me. Basically all the buttons at the bottom are 'X'ed out and do not function. My paths seem to be set fine and if I change them at all then other errors throughout will show up. With my paths set the way they are this is the only problem I have with wcms.
Image

Thanks
Pappnase

Post by Pappnase »

hello

i would say upload the folder inc_ext one more time!
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

your upload app may have 'cloaking' swiched on for certain image file types.
I know Dreamweaver has this option but am unsure as to how widespread this feature actually is.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

Pappnase wrote:hello

i would say upload the folder inc_ext one more time!
or you have to upload images as "binary"
http://www.studmed.dk Portal for doctors and medical students in Denmark
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Post by cRYOa »

the problem doesnt seem to be that the images are not there or corrupted.. but rather the path for just those is not correct. If I right click on one of the missing images, say for example 'Cut' and bring up the properties it says the URL is something like 'http://www.mysite.com/include/inc_ext/s ... tb_cut.gif' when really is should be saying something like ''http://www.mysite.com/web1/cms/include/ ... tb_cut.gif' . So basically it's missing the sub dir of the location to phpwcms. Now the paths are set right and everything else works fine.. if i change anything in the config for the paths then other things start to fail and i get error messages all over the place.
Pappnase

Post by Pappnase »

hello

you have setup the wrong path!

goto your include/conf_inc folder
open the conf.inc.php file an change this

Code: Select all

// site values 
$phpwcms["site"]              = "http://www.mydomain.com/"; 
$phpwcms["admin_email"]       = "info@mail.com"; 

// paths 
$phpwcms["root"]               = "web1/cms";         //default: ""
if you have further problems with the path check this please.

http://www.phpwcms.de/forum/viewtopic.php?t=1815
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

hmm

Post by cRYOa »

Ok i tried first those conf.inc.php settings... and i went back to getting errors. Then I downloaded the Document_Root.php and ran it.. and it showed this:
1) your default $_SERVER['DOCUMENT_ROOT']: /usr/local/apache/htdocs
2) real DOCUMENT_ROOT based on this file : /home/mydomain/public_html/web1/cms
If (1) and (2) not equal then add following
line at the end of your conf.inc.php but before ending "?>":
$_SERVER['DOCUMENT_ROOT'] = '/home/mydomain/public_html/web1/cms';

Check if this is corresponding with the subdir
in which phpwcms is installed:
$phpwcms['root'] = "/home/mydomain/public_html/web1/cms";
If so - everything is fine too, also if this is empty.
Maybe some "/" is there. That's no problem here.
So i did like it said.. I still got errors.. I then went and changed/added the lines in config.inc.php to so:

Code: Select all

$phpwcms["site"]              = "http://esc.midphat.com/mydomain/web1/cms/";
$phpwcms["admin_email"]       = "web1@mydomain.com";

// paths
$phpwcms["root"]         		= "";         //default: ""
define ("PHPWCMS_ROOT","/home/mydomain/public_html/web1/cms/".$phpwcms["root"]) ;
Then I went and change the line in spaw_control.config.php from:

Code: Select all

// directory where spaw files are located
$spaw_dir = '/'.$phpwcms["root"].'include/inc_ext/spaw/';
To now:

Code: Select all

// directory where spaw files are located
$spaw_dir = $phpwcms["root"].'include/inc_ext/spaw/';
taking out the '/' in front of the root string.. I also had to add a '/' to the end of the $_SERVER[DOCROOT] line in the config.inc.php file.

After all this.. i now can see the tool bar in SPAW.. and it all works for the most part except for a couple of glicthes.. i think.

1) When I got to insert an image.. and it calls img_library.php dialog.. in the two default librarys it just says "Library doesn't physically exist" for either one of them.. and there is no upload option (i dont have it enabled in the config too).

2) When I call the color picker... its really really tiny.. it works.. but the window starts out what i would think to be normal size.. then suddenly shrinks to tiny color grid.

Any help on these last two issues would be greatly appreciated. :)
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Also...

Post by cRYOa »

Also I should add that I did manually FTP a couple of .jpg files to both the pictures/ and content/images/ directories thinking that was why it said they didnt exist.. but no luck.. further still i added a temorary echo line in the image_library.php dialog script to echo me what it thought the paths were for thoes two entries ($spaw_imglibs[0]['value'] and $spaw_imglibs[1]['value'] ) and they both looked correct to me. :(
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

Update:

Post by cRYOa »

Okay I got the color picker fixed.. replaced original 1x1 pixel "spacer.gif" with my own 10x10 pixel "spacer.gif . Much better :)

Still haven't got the image library problem solved though
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Do NEVER change the paths like you did.

If you have problems with DOCUMENT_ROOT just ONLY set the DOCUMENT_ROOT as described in the forum.

What you did is defining a constant var - this is not allowed to do it twice per script.

Upload original unpatched files again and setup your conf.inc.php like this:

Code: Select all

$phpwcms["site"] = 'http://esc.midphat.com/mydomain/';
$phpwcms["root"] = 'web1/cms';
$_SERVER['DOCUMENT_ROOT'] = '/home/mydomain/public_html'; 
But you know your web server settings are a bit like "shit" ;-) - why so many alias, different linking and so on in httpd.conf? Makes absolutely NO sense.

Try always to keep it clean - because it can be very confusing.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
cRYOa
Posts: 14
Joined: Sun 23. May 2004, 21:21

okay...

Post by cRYOa »

Okay I did exactly as you said. I changed my config.inc.php to as you said. I removed the 'define' statements from it as well of course. I reuploaded the files and they are untouched.

This is where I'm back to now:

Image

As you will notice.. for some weird reason I'm loosing something there. :(

I know the site is screwy and set up like "shit" hehe.. but I have no control over that unfortunately.

Thanks for you time
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

would you post a link to your site?
I have tried gettign it from your posts but i have no luck with..
http://esc.midphat.com/...
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

But as you can see the website url of the image is false.

Can you send me a login?

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
sijo
Posts: 7
Joined: Mon 24. May 2004, 13:30

Post by sijo »

Did this problem ever get solved? as I have the same problem and am getting nowhere with it.

Any help greatly appreciated.
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

How to help without getting information.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply