Author Topic: Need help...baffled  (Read 1731 times)

0 Members and 1 Guest are viewing this topic.

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Need help...baffled
« on: May 28, 2010, 04:18:47 PM »
Hey guys,

I am fairly new to Linux and am in the middle of a project. I have built a production Linux box (Ubuntu 10.04), running Webmin Control Panel. I have installed PHPdirect Ver. 3.0 and after some fiddling with MySQL settings and permissions I got it to install... However, when I go to login I get a blank white page with no errors. When I turn on error reporting I get nothing unless I envoke the STRICT command and then I get a lot of SMARTY Tag warnings (probably nothing that would keep the pages from displaying however...) but not any ERROR messages. This is all I get:

Warning: include(/home/dumblikeus.com/htdocs/lang): failed to open stream: Success in /home/dumblikeus.com/htdocs/header.php on line 42 Warning: include(): Failed opening 'lang/' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/dumblikeus.com/htdocs/header.php on line 42 Warning: include(/home/dumblikeus.com/htdocs/lang): failed to open stream: Success in /home/dumblikeus.com/htdocs/header.php on line 51 Warning: include(): Failed opening 'lang/' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/dumblikeus.com/htdocs/header.php on line 51 Notice: SmartyPaginate setLimit: limit must be an integer. in /home/dumblikeus.com/htdocs/libs/SmartyPaginate.class.php on line 103 Warning: Smarty error: unable to read resource: "error.tpl" in /home/dumblikeus.com/htdocs/libs/Smarty.class.php on line 1095



I am running the most recent versions of all packages (as of today).

Any ideas? I have tried modifying the PHP.ini file in every way I can think of and have searched the forum for answers... no luck so far.

Please help, this is driving me crazy. :o

Thanks in advance for any suggestions.
« Last Edit: May 28, 2010, 06:03:26 PM by LinuxNoob »
Smart enough to know I'm not smart enough...

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Need help...baffled
« Reply #1 on: May 28, 2010, 09:59:16 PM »
In header.php were our your smarty tags point too, can you just post what is inside the header.php so I can take a look?

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Re: Need help...baffled
« Reply #2 on: May 28, 2010, 10:26:20 PM »
Sure. Hang on a minute...
Smart enough to know I'm not smart enough...

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Re: Need help...baffled
« Reply #3 on: May 28, 2010, 10:27:40 PM »
Here you go...

<?php

/*

+ ----------------------------------------------------------------------------+

|     PHPDirector.

|      $License: GPL General Public License

|      $Website: phpdirector.co.uk

|      $Author: Ben Swanson

|      $Contributors - Dennis Berko and Monte Ohrt (Monte Ohrt)

+----------------------------------------------------------------------------+

*/



//Installed?

$filename = "installed.php";

$handle = fopen($filename, "r");

$contents = fread($handle, filesize($filename));

fclose($handle);

$explode_cont = explode(";", $contents);

if ($explode_cont[1] !== "Yes"){

header("Location: install/index.php");

}

//Installed?



require('libs/Smarty.class.php');

require('libs/SmartyPaginate.class.php');

include("db.php");

if(isset($_POST["comment"])){

header("location: videos.php?id=" . $_GET["id"] . "");

$ip = $_SERVER["REMOTE_ADDR"];

mysql_query("INSERT INTO pp_comments (video_id, ip, comment) VALUES ('$_GET[id]', '$ip', '$_POST[comment]')");

}

include("includes/function.inc.php");

$template = config('template');

$smarty = new Smarty();

$smarty->template_dir = './templates/'.$template;

$smarty->compile_dir = './templates_c';

$smarty->cache_dir = './cache';

$smarty->config_dir = './configs';



//User Select Lang.

if(!$_GET["lang"])

 {

  include("lang/".config('lang'));

 }

else

 {

  SetCookie("lang",$_GET["lang"]);

  header('Location: ' . $_SERVER['HTTP_REFERER'] );   

 }

if (!$_COOKIE["lang"])

 {

  include("lang/".config('lang'));

 }

else

 {

  $lang = $_COOKIE["lang"];

  include("lang/" . $lang . ".inc.php");

 }



 

$sort1 = $_GET['sort'];

$page = $_GET['page'];

$pagetype = $_GET["pt"];

$smarty->assign('pagetype', $pagetype);

$smarty->assign('next', $_GET["next"]);

$cnf_name = config('name');

$smarty->assign('config_name', $cnf_name);



//NEWS//

$news = config('news');

$smarty->assign('news', $news);

//NEWS//



//Firefox?

$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];

if (!(strpos($HTTP_USER_AGENT,'Mozilla/5') === false)) {

$smarty->assign('firefox', '1');

} else {

$smarty->assign('firefox', '0');

}

//Firefox? END

if(isset($_COOKIE["id"]))

{

   $result_us= mysql_query("SELECT * FROM pp_user WHERE id=$_COOKIE[id]") or die(mysql_error());

      $row_us = mysql_fetch_assoc($result_us);

     $smarty->assign('user', $row_us['user']);

     $smarty->assign('avatar', $row_us['avatar']);

    $mess= mysql_query("SELECT COUNT(*) as nb FROM pp_messages WHERE id_destinataire = $_COOKIE[id]") or die(mysql_error());

      $row_mess = mysql_fetch_assoc($mess);

     $smarty->assign('nbmess', $row_mess['nb']); 

}

?>


See anything?
Smart enough to know I'm not smart enough...

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Need help...baffled
« Reply #4 on: May 29, 2010, 02:25:46 PM »
looks fine, all the files were uploaded right?

Look at attachment to see what there is in the root.
http://phpdirector.co.uk/forum/index.php?action=dlattach;topic=412.0;attach=197;image

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Re: Need help...baffled
« Reply #5 on: May 29, 2010, 09:41:37 PM »
See attached for what I have... I seem to have more folders... I am using the old ver.30... ???
Smart enough to know I'm not smart enough...

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Need help...baffled
« Reply #6 on: May 30, 2010, 03:17:47 AM »
Looks fine, winracer you have any idea?

I guess you could try a clean reinstall, maybe becuase your running your own server that there our some features not totally installed?


Also you have the new Ubuntu? 10.04 LTS, I want to switch from my Windows 7 OS to Ubuntu 10.04 is it as good as they say?

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: Need help...baffled
« Reply #7 on: May 30, 2010, 03:31:10 AM »
what version of php are you running?
you can do
<?php phpinfo() ?>

to see.

also what php modules did you install?

these are installed on my server

Archive_Tar 1.3.3 Show Docs 
Archive_Zip 0.1.1 Show Docs 
Auth 1.6.1 Show Docs 
Auth_HTTP 2.1.6 Show Docs 
Auth_PrefManager 1.2.0 Show Docs 
Auth_SASL 1.0.2 Show Docs 
Benchmark 1.2.7 Show Docs 
Cache 1.5.5 Show Docs 
Cache_Lite 1.7.4 Show Docs 
Calendar 0.5.3 Show Docs 
Config 1.10.11 Show Docs 
Console_Getargs 1.3.4 Show Docs 
Console_Getopt 1.2.3 Show Docs 
Contact_Vcard_Build 1.1.1 Show Docs 
Crypt_Blowfish 1.1.0RC2 Show Docs 
Crypt_CHAP 1.0.1 Show Docs 
Crypt_HMAC 1.0.1 Show Docs 
DB 1.7.14RC1 Show Docs 
DBA 1.1.1 Show Docs 
DB_DataObject 1.8.8 Show Docs 
DB_NestedSet 1.4.0RC1 Show Docs 
DB_ldap 1.2.0 Show Docs 
Date 1.4.7 Show Docs 
Event_Dispatcher 1.0.0 Show Docs 
FSM 1.3.0 Show Docs 
File 1.3.0 Show Docs 
File_IMC 0.3 Show Docs 
File_PDF 0.3.2 Show Docs 
HTML_AJAX 0.5.6 Show Docs 
HTML_BBCodeParser 1.2.2 Show Docs 
HTML_CSS 1.5.1 Show Docs 
HTML_Common 1.2.4 Show Docs 
HTML_Page2 0.5.0beta Show Docs 
HTML_Progress2 2.4.1 Show Docs 
HTML_QuickForm 3.2.10 Show Docs 
HTML_QuickForm_Controller 1.0.9 Show Docs 
HTML_Table 1.8.2 Show Docs 
HTML_Template_Flexy 1.3.4 Show Docs 
HTML_Template_IT 1.2.1 Show Docs 
HTML_Template_PHPLIB 1.4.0 Show Docs 
HTML_TreeMenu 1.2.1 Show Docs 
HTTP 1.4.1 Show Docs 
HTTP_Client 1.2.1 Show Docs 
HTTP_Download 1.1.3 Show Docs 
HTTP_Header 1.2.0 Show Docs 
HTTP_Request 1.4.3 Show Docs 
HTTP_Session 0.5.6 Show Docs 
HTTP_WebDAV_Server 1.0.0RC4 Show Docs 
Image_Barcode 1.1.0 Show Docs 
Image_Color 1.0.2 Show Docs 
Image_GraphViz 1.3.0RC3 Show Docs 
Image_Text 0.6.0beta Show Docs 
Image_Transform 0.2 Show Docs 
Log 1.11.2 Show Docs 
MDB2 2.5.0b1 Show Docs 
MDB2_Driver_mysql 1.5.0b1 Show Docs 
MIME_Type 1.1.3 Show Docs 
MP3_Id 1.2.1 Show Docs 
Mail 1.2.0b1 Show Docs 
Mail_Mime 1.5.2 Show Docs 
Mail_Queue 1.2.2 Show Docs 
Mail_mimeDecode 1.5.0 Show Docs 
Net_DIME 1.0.1 Show Docs 
Net_FTP 1.3.7 Show Docs 
Net_Geo 1.0.4 Show Docs 
Net_SMTP 1.3.1 Show Docs 
Net_Sieve 1.1.6 Show Docs 
Net_Socket 1.0.9 Show Docs 
Net_URL 1.0.15 Show Docs 
Net_UserAgent_Detect 2.5.0 Show Docs 
OLE 1.0.0RC1 Show Docs 
PEAR 1.9.0 Show Docs 
PEAR_Info 1.9.0 Show Docs 
PHPUnit 1.3.2 Show Docs 
PHP_Compat 1.5.0 Show Docs 
Pager 2.4.7 Show Docs 
PhpDocumentor 1.4.2 Show Docs 
SOAP 0.12.0 Show Docs 
Services_Weather 1.4.3 Show Docs 
Spreadsheet_Excel_Writer 0.9.1 Show Docs 
Stream_Var 1.0.0 Show Docs 
Structures_Graph 1.0.3 Show Docs 
System_Command 1.0.6 Show Docs 
Text_Figlet 1.0.0 Show Docs 
Text_Password 1.1.0 Show Docs 
Text_Statistics 1.0 Show Docs 
Text_Wiki 1.2.0 Show Docs 
Validate 0.8.1 Show Docs 
Var_Dump 1.0.3 Show Docs 
XML_HTMLSax3 3.0.0 Show Docs 
XML_Parser 1.3.1 Show Docs 
XML_RPC 1.5.3 Show Docs 
XML_RSS 0.9.10 Show Docs 
XML_Serializer 0.19.1 Show Docs 
XML_Statistics 0.1 Show Docs 
XML_Util 1.2.1 Show Docs 
« Last Edit: May 30, 2010, 03:33:55 AM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Re: Need help...baffled
« Reply #8 on: May 31, 2010, 01:37:22 AM »
Please look at:
http://www.dumblikeus.com/phpinfo.php

Thanks for the help... I am still at a loss as to why this doesn't work.
Smart enough to know I'm not smart enough...

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Re: Need help...baffled
« Reply #9 on: May 31, 2010, 04:22:53 PM »

Also you have the new Ubuntu? 10.04 LTS, I want to switch from my Windows 7 OS to Ubuntu 10.04 is it as good as they say?

I like it a lot, although it takes some getting used to after running windows based servers for years. I have only been playing with it for about a month now, but it has a ton of great features and software installs and updates are a breeze once you get used to the repository system. I would highly recommend it for server systems especially if you run multicore processors. Ubuntu Server 10.04 64bit, Quad-core Phenom, 4 Gb Ram, 1.5Tb SATA HHD... makes a great server platform... 8)
Smart enough to know I'm not smart enough...

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: Need help...baffled
« Reply #10 on: June 01, 2010, 10:25:22 PM »
so did you get to work?
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline LinuxNoob

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • Dumb Like Us.com
  • Script Version: .30
Re: Need help...baffled
« Reply #11 on: June 02, 2010, 04:49:54 PM »
Nope... :'( I have tried just about everything... Same result. No errors, but just the white page... No ideas?
Smart enough to know I'm not smart enough...

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: Need help...baffled
« Reply #12 on: June 04, 2010, 12:40:25 PM »
Nope... :'( I have tried just about everything... Same result. No errors, but just the white page... No ideas?


I sent you a PM
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com