mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Connect to DB
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=14&t=295
Page 1 of 1

Author:  Joe [ 29 Mar 2006, 14:12 ]
Post subject:  Connect to DB

Hi,
I installed OSCPM and when trying to connect to the database an error is displayed 'Protocol field is empty'. The applicating freezes and can only be terminated in the task manager.
The protocol field is not empty and indicated the version of MySQL that is in use.
What is going wrong here?

Thanks,

Joe

[/b]

Author:  mvaldez [ 29 Mar 2006, 18:26 ]
Post subject:  Missing protocol...

Joe:

> I installed OSCPM and when trying to connect to the database
> an error is displayed 'Protocol field is empty'. The applicating
> freezes and can only be terminated in the task manager.
The protocol field is not empty and indicated the version of
> MySQL that is in use. What is going wrong here?

The problem is the following:

If the URL of the location of the server-side script does not have a protocol preffix (http://), when trying to connect to the server it fails with an error (an Indy error "protocol field is empty") and the application freezes.

The problem is in the option: Configuration > Network 3 > Upload script URL. The URL should be a full URL like "http://www.yoursite.com/catalog/oscpm1_upload.php", with the "http://" part. (Or the "https://" part if you have installed the OpenSSL libs and you are using SSL).

The same applies to the option Configuration > Images > Images URL.


The freezing is a different bug that only happens when something fails during the connection, but will not happen as soon as you fix your URLs. :)


Regards,

Mario A. Valdez-Ramirez.

Author:  Joe [ 30 Mar 2006, 04:43 ]
Post subject:  Connect to DB

Mario,

That was indeed the solution, it works.

Thanks very much,

Joe

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/