Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorgason
    • CommentTimeDec 29th 2007
     
    So i´m trying to create a new jobberbase powered site and getting some errors
    take a look at (temporary domain): http://castingsonline.pandela.org
    I can hide them all, but e-mail sending (for approval, applications, etc) is not working...
    Some help please??

    Great script by the way and very nice design =)
    • CommentAuthorfilip
    • CommentTimeDec 29th 2007
     

    What PHP version is the server running?

    •  
      CommentAuthorgason
    • CommentTimeDec 29th 2007
     
    Apache 2.0.5.9
    PHP 5.1.2
    MySql 4.1.16

    Anything else?
    Thanks
    •  
      CommentAuthorgason
    • CommentTimeDec 29th 2007 edited
     

    Here is the config.php, maybe I made a mistake here?

    @<?php
    @/**
    @* jobber job board platform
    @*
    @ * @author Filip C.T.E. <http://www.filipcte.ro> <me@filipcte.ro>
    @ * @license You are free to edit and use this work, but it would be nice if you always referenced the original author ;)
    @ * (see license.txt).
    @ */
    @
    @ header(‘Content-Type: text/html; charset=UTF-8’);
    @
    @ ini_set(‘display_errors’, ‘On’);
    @ error_reporting(E_ALL ^ E_STRICT);
    @
    @ date_default_timezone_set(‘America/Buenos_Aires’);
    @
    @ // MySQL + misc settings for local environment
    @ if ($_SERVER[‘SERVER_NAME’] == ‘localhost’)
    @ {
    @ define(‘DB_HOST’, ‘localhost’);
    @ define(‘DB_USER’, ‘root’);
    @ define(‘DB_PASS’, ‘’);
    @ define(‘DB_NAME’, ‘jobberbase’);
    @ define(‘LOCATION’, ‘local’);
    @ define(‘ENVIRONMENT’, ‘dev’);
    @ }
    @ // MySQL + misc settings for production environment
    @ else
    @ {
    @ define(‘DB_HOST’, ‘sql3.pandela.com’);
    @ define(‘DB_USER’, ‘gason_co’);
    @ define(‘DB_PASS’, ‘*********’);
    @ define(‘DB_NAME’, ‘gason_co’);
    @ define(‘LOCATION’, ‘online’);
    @ define(‘ENVIRONMENT’, ‘prod’);
    @ define(‘JOBBER_URL’, ‘http://castingsonline.pandela.org/’);
    @
    @ }
    @
    @ // Global settings definitions
    @ define(‘NOTIFY_EMAIL’,‘gasason@gmail.com’);
    @ define(‘ADMIN_EMAIL’,‘gasason@gmail.com’);
    @ define(‘SITE_NAME’, ‘Castings Online’);
    @
    @ define(‘MAX_CV_SIZE’, 3000000); // approx. 3 mb
    @ define(‘FILE_UPLOAD_DIR’, ‘uploads/’);
    @ define(‘JOBS_PER_PAGE’, 50);
    @
    @ //define (‘APP_PATH’, $_SERVER[‘DOCUMENT_ROOT’] . _APP_MAIN_DIR . ‘/’);
    @ define(‘APP_PATH’,dirname(__FILE__).’/’);
    @ @ if(isset($_SERVER[‘SCRIPT_NAME’]))
    @ { @ define(’_APP_MAIN_DIR’, rtrim(dirname($_SERVER[‘SCRIPT_NAME’]),’/’)); @}
    @ else
    @ {
    @ //define(’_APP_MAIN_DIR’,’/jobberbase/app’);
    @ die(’[config.php] Cannot determine APP_MAIN_DIR, please set manual and comment this line’);
    @ }
    @
    @ if(isset($_SERVER[‘HTTP_HOST’]) && isset($_SERVER[‘SERVER_PORT’]))
    @ { @ if($_SERVER[‘SERVER_PORT’] == 80) @ {
    @ define (‘BASE_URL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . _APP_MAIN_DIR . ‘/’);
    @ }
    @ else
    @ {
    @ define (‘BASE_URL’, ‘http://’ . $_SERVER[‘HTTP_HOST’].’:’.$_SERVER[‘SERVER_PORT’] . _APP_MAIN_DIR . ‘/’);
    @ }
    @ }
    @ else
    @ {
    @ //define (‘BASE_URL’, ‘http://jobberbase.ro’ . _APP_MAIN_DIR . ‘/’);
    @ die(’[config.php] Cannot determine BASE_URL, please set manual and comment this line’);
    @ }
    @
    @ // Type of jobs. Values are the database ids.
    @ define(‘JOBTYPE_FULLTIME’, 1);
    @ define(‘JOBTYPE_PARTTIME’, 2);
    @ define(‘JOBTYPE_FREELANCE’, 3);
    @
    @ // Function and classes includes
    @ require_once ‘_includes/function.validate_email.php’;
    @ require_once ‘_includes/function.redirect_to.php’;
    @ require_once ‘_includes/function.printr.php’;
    @ require_once ‘_includes/function.escape.php’;
    @ require_once ‘_includes/functions.php’;
    @ require_once ‘_includes/class.phpmailer.php’;
    @ require_once ‘_includes/class.Postman.php’;
    @ require_once ‘_includes/class.Textile.php’;
    @ require_once ‘_includes/class.Sanitizer.php’;
    @ require_once ‘_includes/class.Db.MySql.php’ ;
    @ require_once ‘_includes/class.Job.php’;
    @ require_once ‘_includes/class.Paginator.php’;
    @ require_once ‘_includes/class.Feed.php’;
    @ require_once ‘_includes/class.SpamReport.php’;
    @ require_once ‘_includes/class.Api.php’;
    @ require_once ‘_includes/class.JobApplication.php’;
    @ require_once ‘_includes/class.SearchKeywords.php’;
    @ require_once ‘_includes/smarty/libs/Smarty.class.php’;
    @
    @ // Setup database connection
    @ try
    @ {
    @ $db = new Db(DB_HOST, DB_USER, DB_PASS, DB_NAME);
    @ $db->Execute(‘SET CHARSET UTF8’);
    @ }
    @ catch(ConnectException $exception)
    @ {
    @ if (ENVIRONMENT == ‘dev’)
    @ {
    @ echo “Database Connection Error:<br />”;
    @ printr($exception->getMessage());
    @ }
    @ }
    @
    @ // Setup Smarty
    @ $smarty = new Smarty();
    @ $smarty->template_dir = APP_PATH . ‘_templates/’;
    @ $smarty->compile_dir = APP_PATH . ‘_templates/_cache/’;
    @
    @
    @ // Create Textile object
    @ $textile = new Textile;
    @
    @ // Split URL – get parameters
    @ $_app_info[‘params’] = array();
    @ $_url = str_replace(_APP_MAIN_DIR, ‘’, $_SERVER[‘REQUEST_URI’]);
    @ $_tmp = explode(’?’, $_url);
    @ $_url = $_tmp0;
    @ if ($_url = explode(’/’, $_url))
    @ {
    @ foreach ($_url as $tag)
    @ {
    @ if ($tag)
    @ {
    @ $_app_info[‘params’][] = $tag;
    @ }
    @ }
    @ }
    @?>

    @

    •  
      CommentAuthorgason
    • CommentTimeDec 30th 2007
     

    Finished branding and translation for a “beta” launch but the mailing is still not working =(
    Any ideas?????

    • CommentAuthorfilip
    • CommentTimeDec 30th 2007
     

    are you using a windows or a linux server? mailing uses linux sendmail (default mail() php function).
    also, the errors you get could happen because of some php.ini setting…

    •  
      CommentAuthorgason
    • CommentTimeJan 1st 2008
     

    I´m not sure..
    I´m getting a paid linux server this week
    hope it works there
    thanks for the support
    happy new year!
    =)

    • CommentAuthorepeloke
    • CommentTimeJan 25th 2008
     
    When looking at your site, it looks like php has strict error reporting on as it is complaining about the "var" syntax which id deprecated in php5. If you look in your php.ini file, how is error_reporting set?

    Thanks,
    Eddie
    •  
      CommentAuthorgason
    • CommentTimeJan 25th 2008
     
    Not sure, but I got another hosting already and everything is great.
    I don´t know if that was wrong but i realized the main problem was an incompatible mySQL version.
    Thanks anyway =)

    gasón