Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by simpilot

  1. after installation

    this is the error

    Notice: The template file "/home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/xxxxxx//core/templates/mail/mail_menu.tpl" doesn't exist in /home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/home/core/classes/TemplateSet.class.php on line 248 Notice: The template file "/home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/xxxxxx//core/templates/mail/mail_inbox.tpl" doesn't exist in /home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/home/core/classes/TemplateSet.class.php on line 248
    

    http://forum.phpvms.net/topic/18860-i-have-a-xxxxxxtpl-file-not-found-error/

  2. Without knowing how the template has been edited I would guess the link has been edited incorrectly. It should be something like:

    <a id="<?php echo $schedule->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid/?id='.$schedule->id);?>">Add to Bid</a>
    

  3. Have you tried adding "addslashes" to the incoming text from the form? I have already added it to the pilotname field in my development version to fix pilot names with apostrophes.

    public static function AddNewsItem($subject, $body) {
     $subject = DB::escape($subject);
     $body = DB::escape($body);
     $postedby = Auth::$userinfo->firstname . ' ' . Auth::$userinfo->lastname;
    
     //added to combat pilot names with apostrophes
     $postedby = addslashes($postedby);
    
     $sql = 'INSERT INTO ' . TABLE_PREFIX . "news (subject, body, postdate, postedby)
     VALUES ('$subject', '$body', NOW(), '$postedby')";
     $res = DB::query($sql);
     if (DB::errno() != 0) return false;
     return true;
    }
    

    maybe try

    $body = addslashes($body);
    

  4. You are going to have to catch the error from the database. If you enable de-bugging and do not see it add this to your SiteData.class file in the addPage function temporarily, then try to add a page and see what it shows.

    $sql = "INSERT INTO " . TABLE_PREFIX .
    	 "pages (pagename, filename, postedby, postdate, public, enabled)
     VALUES ('$title', '$filename', '$postedby', NOW(), $public, $enabled)";
     $ret = DB::query($sql);
     if (DB::errno() != 0) return false;
    

    make it look like this temporarily

    $sql = "INSERT INTO " . TABLE_PREFIX .
    	 "pages (pagename, filename, postedby, postdate, public, enabled)
     VALUES ('$title', '$filename', '$postedby', NOW(), $public, $enabled)";
     $ret = DB::query($sql);
     var_dump(DB::error());exit;
     if (DB::errno() != 0) return false;
    

    I am guessing there is an apostrophe in the user name or the text somewhere that you don't realize is there.

    What is the link to your site?

  5. Untested but try -> /core/common/SiteData.class.php

    public static function GetAllPages($onlyenabled = false, $loggedin = false) {
        $sql = "SELECT * FROM " . TABLE_PREFIX . "pages";
        if ($onlyenabled == true) {
    	    $sql .= ' WHERE enabled=1';
    	    if ($loggedin == false) {
    		    $sql .= ' AND public=1';
    	    }
        }
        return DB::get_results($sql);
       }
    

    to

    public static function GetAllPages($onlyenabled = false, $loggedin = false) {
        $sql = "SELECT * FROM " . TABLE_PREFIX . "pages";
        if ($onlyenabled == true) {
    	    $sql .= ' WHERE enabled=1';
    	    if ($loggedin == false) {
    		    $sql .= ' AND public=1';
    	    }
        }
    
        $sql .= ' ORDER BY pagename ASC';
        return DB::get_results($sql);
       }
    

  6. Notice: The template file "/home/buzzvir1/public_html//admin/templates/vstaff/add_staff_bar.php.tpl" doesn't exist in /home/buzzvir1/public_html/core/classes/TemplateSet.class.php on line 248

    Notice: The template file "/home/buzzvir1/public_html//admin/templates/vstaff/add_staff_cat_bar.php.tpl" doesn't exist in /home/buzzvir1/public_html/core/classes/TemplateSet.class.php on line 248

    Notice: The template file "/home/buzzvir1/public_html//admin/templates/vstaff/all_staff.php.tpl" doesn't exist in /home/buzzvir1/public_html/core/classes/TemplateSet.class.php on line 248

    http://forum.phpvms.net/topic/18860-i-have-a-xxxxxxtpl-file-not-found-error/

  7. I am not aware of an option that resets a page template cache. There is a function in the admin panel to reset the general cache of the site but I do not beleieve it is going to do anything with the saving pages issue.

    Admin > Site & Settings > Maintenance Options > Clear Cache

    If your host was able to fix it before I would contact them again.

  8. Admin > Airline Operations > Add & Edit Fleet

    In sidebar export a csv file to start with and fill out. Import it back to the system.

    That is about the easiest way unless you can get someone to give you their list but that is all part of building a VA.

  9. Hello, so far I am loving the skin. Just a quick question. How do I edit the "Ocean Blue" Title in front of the slider? Many thanks. I have spent over three hours to figure this out but I have now given up.

    I think it is layout.tpl line 81

    <a href="#">Ocean Blue</a>
    

    • Like 1
×
×
  • Create New...