News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Mambo/SMF is fine! Try adding mosCommerce?

Started by boazatova, September 23, 2005, 09:02:38 AM

Previous topic - Next topic

boazatova

I've done it! But posting in SMF fails often. Apparently due to conflicts with the mosCommerce Mambo component...

http://www.simplemachines.org/community/index.php?topic=50574.0

Excuse the cross post...  ::)

But I *feel* I'm very close to having a dream come true  :-*

... looking for ideas to help a coding noob  :-[

boaz

www.ova-is.com/m

Orstio

#1
QuoteI've done it! But posting in SMF fails often. Apparently due to conflicts with the mosCommerce Mambo component...

I don't see how these components would affect one another.

Can you post the contents of your Mambo template header?

boazatova

Quote from: Orstio on September 25, 2005, 09:59:56 PM
QuoteI've done it! But posting in SMF fails often. Apparently due to conflicts with the mosCommerce Mambo component...

I don't see how these components would affect one another.

Can you post the contents of your Mambo template header?
Hi Orstio!

exactly which file contains the template header?  :-[

boaz

boazatova

template index.php:

<?php defined"_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );$iso split'='_ISO );echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO?>" />
<?php if ( $my->id ) { initEditor(); } ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ?>
<!-- added line below: 21:48 21/09/2005 -->
<link rel="stylesheet" type="text/css" href="<?= $mosConfig_live_site ?>/components/com_oscommerce/stylesheet.css">

<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/templates/blue_dragon/images/favicon.ico" />
<style type="text/css">
<!--
.Style1 {
font-size: 9px;
color: #000066;
}
-->
</style>

<?php 
global $sc$context;

if (!
defined('SMF')){
  require (
"administrator/components/com_smf/config.smf.php");
  require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);
?>


</head>


This is everything above the body tag in the index.php file in the relevant template directory... does it help?

boaz


boazatova

Hi Orstio,
I have a complete SMF Admin listing of the site errors from your IP address from earlier today. I'd be happy to make them available to you either here or directly (I didn't want to PM 7 pgs of errors to you!  ;D )

boaz

Orstio

Well, I did encounter two instances of Mambo not connecting to the database.  There is obviously a problem with the database server.

But, that is not related to this issue.  And yes, that bit of code helps eliminate one possibilty.

For some reason, your SMF session is not working properly.

What are your settings for the following in your SMF admin panel:

Database driven sessions:

Allow browsers to go back to cached pages:

Seconds before an unused session times out:

Enable local storage of cookies:

Use subdomain independent cookies:


boazatova

Quote from: Orstio on September 26, 2005, 06:03:42 PM
Well, I did encounter two instances of Mambo not connecting to the database.  There is obviously a problem with the database server.

But, that is not related to this issue.  And yes, that bit of code helps eliminate one possibilty.

For some reason, your SMF session is not working properly.

What are your settings for the following in your SMF admin panel:

Database driven sessions:

Allow browsers to go back to cached pages:

Seconds before an unused session times out:

Enable local storage of cookies:

Use subdomain independent cookies:

Database driven sessions:  (Use database driven sessions) = checked

Allow browsers to go back to cached pages:  (Allow browsers to go back to cached pages) = checked

Seconds before an unused session times out:  (Seconds before an unused session timeout) = 3600

Enable local storage of cookies:  (Enable local storage of cookies) = unchecked

Use subdomain independent cookies:  (Use subdomain independent cookies) = unchecked

Does this help?  :P

boaz

Orstio

Try this instead:

Allow browsers to go back to cached pages:  (Allow browsers to go back to cached pages) = unchecked


Use subdomain independent cookies:  (Use subdomain independent cookies) = checked

boazatova

OK. I've made those changes. Now to test... (feel free to have a go yourself. Note the wrapped version is the last link in the LHS menu = 'Forum (broken!)')

boaz

boazatova

#9
Quote from: Orstio on September 27, 2005, 06:24:51 PM
Try this instead:

Allow browsers to go back to cached pages:  (Allow browsers to go back to cached pages) = unchecked


Use subdomain independent cookies:  (Use subdomain independent cookies) = checked

Testing (in chronological order after login via 'Mambo' menu (ie, bridge):
1. new topic = OK,

2. quick reply = failed,
An Error Has Occurred!
You already submitted this post! You might have accidently double clicked, or tried to refresh. 


3. normal reply = failed,
ditto

4. quoted reply = failed,
ditto

5. new topic = failed,
ditto

>:(

boaz

boazatova

#10
Quote from: Orstio on September 27, 2005, 06:24:51 PM
Try this instead:

Allow browsers to go back to cached pages:  (Allow browsers to go back to cached pages) = unchecked


Use subdomain independent cookies:  (Use subdomain independent cookies) = checked

Testing (in chronological order after login via 'SMF'):
1. new topic = OK,

2. quick reply = failed,
An Error Has Occurred!
You already submitted this post! You might have accidently double clicked, or tried to refresh. 


3. normal reply = failed,
ditto

4. quoted reply = failed,
ditto

5. new topic = failed,
ditto

From these two experiences... only one post per 'login' is possible!... might a 'flag' be being set somewhere?

>:(  >:(

boaz

boazatova

After the last replies/new posts failed I...

1. logged out
2. logged back in
3. attempted a quick reply... failed.

Then:

1. logged out
2. closed browser window
3. opened new browser window & browsed to site
4. logged in
5. successfully posted a quick reply...
6. attempted 2nd quick reply = failed.

Ideas? Browser cache?

boaz

Orstio

For some reason, either something is being cached from $_POST or $_REQUEST, or your session is not working correctly.

Database driven sessions usually work for most.  I haven't seen an installation fail because of that in a long time.  What happens if you uncheck that?

boazatova


Advertisement: