PDA

View Full Version : Text Editor Toolbar


Kohl
10-24-2004, 10:34 PM
I'm running the latest RC. On two different (working) sites when I try to use the Image, Table or Create link insert, I receve the following error message:
Could not connect to database '' (). Check your database setup.

Any ideas?

Cameron Allen
10-25-2004, 12:39 PM
This Problem is usually limited to client PC's with too tight browser cookie settings, or to local networks with restrictive firewalls. Try to use the image or create table buttons when using pro on a different computer.

If you still get the same error Include all db_connect and config scripts within the text_editor_newImage.php, text_editor_newTable, and text_editor_newlink.php files (found in the /sohoadmin/program/modules/page_editor) themselves, rather than depending on the session to pass the data to the new window. (as in, the one for the pop-up window itself).

icarrion
10-26-2004, 03:12 PM
I'm running the latest RC. On two different (working) sites when I try to use the Image, Table or Create link insert, I receve the following error message:
Could not connect to database '' (). Check your database setup.

Any ideas?

Adding the following:

$db_server="localhost";
$db_name="yourdatabasename";
$db_un="yourusername";
$db_pw="yourpassword";

to your db_connect.php script right before it is called by the mysql_connect command. Add it to your sohoadmin/program/modules/page_editor/includes/db_connect.php.

This is a poor fix but works. If I figure out something better I'll let ya'l know.

Thanks!

Kohl
10-26-2004, 11:05 PM
Adding the following:

$db_server="localhost";
$db_name="yourdatabasename";
$db_un="yourusername";
$db_pw="yourpassword";

to your db_connect.php script right before it is called by the mysql_connect command. Add it to your sohoadmin/program/modules/page_editor/includes/db_connect.php.

This is a poor fix but works. If I figure out something better I'll let ya'l know.

Thanks!

Thank you!
That did it. The only difference I can think of between this install and others that I have running is that the database name and username are the same. Could that affect it? I have also had problems with this install kicking me out while making updates, etc.

icarrion
10-27-2004, 11:12 AM
Thank you!
That did it. The only difference I can think of between this install and others that I have running is that the database name and username are the same. Could that affect it? I have also had problems with this install kicking me out while making updates, etc.

All my installs of sohopro have given me this error message and I can't recall having the same database name and username on any of them. I'm running on an Ensim 3.5 environment with chrooted sites. What environment are you on?

I still have to install 3 sohopros on my server so I will be messing around with it some more. If I find a better solution I'll fill you in.

icarrion
10-27-2004, 11:19 AM
Thank you!
That did it. The only difference I can think of between this install and others that I have running is that the database name and username are the same. Could that affect it? I have also had problems with this install kicking me out while making updates, etc.

Kohl, do you have an "_" (underscore) in the database name, username, password, or servername?

Kohl
10-28-2004, 08:57 PM
Kohl, do you have an "_" (underscore) in the database name, username, password, or servername?

No, but it is doing it on every site that I have using Plesk7. Is that what you are using?

icarrion
10-29-2004, 03:57 PM
No, but it is doing it on every site that I have using Plesk7. Is that what you are using?

No I'm on Ensim. Does plesk chroot each domain? Ensim has that option and that is what all my customers are running on. I have a feeling it's this but I have to do more testing.

Ruben
11-01-2004, 09:31 AM
Icarrion, check that you don't run this site in high security mode, but use 3.1 compatible, that solved my problems.

brianc
11-04-2004, 05:25 PM
I had the same problem with version 4.7 but not with version 4.6. I find the following advice:

"This Problem is usually limited to client PC's with too tight browser cookie settings, or to local networks with restrictive firewalls. Try to use the image or create table buttons when using pro on a different computer. "

not very helpful and quite frankly its passing the buck. Cameron perhaps you can make your software more W3C compliant and save your customers a lot of hassle. Firewalls and High Security settings are now a part of us and is here to stay.

Brian

Cameron Allen
11-04-2004, 05:30 PM
I believe that Internet explorer has accomodated for most of this. If you go into internet options/security there is a trusted sites option you can click. Here you can add trusted sites, so that you don't have to toggle your security settings.

brianc
11-04-2004, 05:35 PM
I believe that Internet explorer has accoodated for most of this. If you go into internet options/security there is a trusted sites option you can click. Here you can add trusted sites, so that you don't have to toggle your security settings.

I tried that to no avail.

Brian

Cameron Allen
11-04-2004, 05:41 PM
Have you tried putting your settings on medium or medium-high?

brianc
11-04-2004, 06:04 PM
Have you tried putting your settings on medium or medium-high?

I tried that to no avail as well.

Brian

Ruben
11-06-2004, 08:19 AM
did you tried this from another computer outside your network? just to see if it works there?