Archive

Posts Tagged ‘diagnose and’

Diagnose And Fix Server Redirect 2

July 27th, 2011 Comments off

We have a perplexing issue – unexplainable server redirect. I type in a url that should direct me to our test server, but it directs me to our demo server.

Yes, the DNS and Elastic IPs were checked (whatsmydns.net). So this is all fine. And developer assures me it’s not in the web apps running on the test server (verified by logs he said).

Running Tomcat. Window server.

Need someone to diagnose and fix.

Diagnose And Fix Server Redirect

July 26th, 2011 Comments off

We have a perplexing issue – unexplainable server redirect. I type in a url that should direct me to our test server, but it directs me to our demo server.

Yes, the DNS and Elastic IPs were checked (whatsmydns.net). So this is all fine. And developer assures me it’s not in the web apps running on the test server (verified by logs he said).

Running Tomcat. Window server.

Need someone to diagnose and fix.

Diagnose And Repair

July 27th, 2009 Comments off

My site is a b2b trade portal. A member can select their favorite categories and when another member posts in those categories they are supposed to get an internal message and an email alert.

I have had several code fixes and changes so I don’t know what happened but neither of these is happening.

I think maybe it has to do with sessions.php but I am not sure. This is in my template code but when I look in temporary internet file I do not see a cookie from my site being created.

<?php
include_once “myconnect.php”;
include_once “session.php”;
include_once “styles.php”;
include_once “left_mem.php”;
include_once “date_time_format.php”;
include_once “send_alerts.php”;

if(isset($_COOKIE["b2b_blead_user"]))
{
$username=$_COOKIE["b2b_blead_user"];
$sql=”SELECT * FROM b2b_members WHERE sb_username = ‘$username’” ;
$rs_query=mysql_query($sql);
if ( $rs=mysql_fetch_array($rs_query) )
{
$_SESSION["b2b_username"]=$rs["sb_username"] ;
$_SESSION["b2b_userid"]=$rs["sb_id"] ;
$_SESSION["b2b_memtype"]=$rs["sb_memtype"];
}
}

//include_once “check_msg_function.php”;

$config=mysql_fetch_array(mysql_query(“select * from b2b_config “));
//======================code here is equivalent to chron file code=============================
mysql_query(“update b2b_members set sb_memtype=”.$config["sb_memtype"].” where sb_expiry_date < NOW()”);
if(date(“Ymd”,time())>$config["sb_last_sent"])
{
//echo “working”;
send_mail_alerts();////
mysql_query(“update b2b_config set sb_last_sent=”.date(“Ymd”,time()).” where 1″);
}

The send_alert to the user email is supposed to happen when a member posts an sell offer and I can see the code in that file post_offers.php

I am not a coder so I can’t say what the cause is . I need the site to be debugged and fixed.

Thanks,

Kelark

Load Time Diagnose And Repair

April 14th, 2009 Comments off

MY main page is taking longer to load the previously.

It has at least three queries to perform.

It is a b2b trade portal. The first query from the mysql database is to find the last sell offer created and display the link and title of it.

The second query counts how many total records are in each section
Sell offers, buy offers, company profiles products and members and to display the count. Some of these are getting to have a lot of records at least by my standards. The sell offers now has 9600 rows.

I think this is where it may be taking some time.

The third quesry loads about 60 category links from the database that link to specific category pages.

I noticed that it loads slightly faster in Firefox than Internet Explorer. After loading it the first time refreshing the page is a little faster as well.

I am open to suggestions.

Thanks

Bear