SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member php_newatit's Avatar
    Join Date
    May 2007
    Location
    Ontario, Canada
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Error (ERROR_MISSING_OBJECT) :

    Hi guys and gals,

    I was referred to this site to ask for assistance by a CSS pal. I have limited experience with ZenCart and OSCommerce, but this problem is new to me. I was just trying to do a search for the error occurring in the site linked below. I've also tried trouble-shooting. I currently have a small amount of PHP experience, and was wondering if you could help me figure out the errors that are occurring on this page in the photogallery of the site linked below (I didn't build this one, he he). It seems that the database isn't being accessed due to an error somewhere in the programming. I offered to host the site, but there was an error in transferring it to my server and now I need to fix I greatly appreciate any and all help you can offer!! Thanks!

    Here is the site: http://www.northernphysique.com/phot...1c21baa8d88117
    Sincerely in Christ,

    Jesse

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    error

    Hi php_newatit, welcome to the forums.
    From the smarty debug console, the error is in the
    /photogallery/main.php file at
    <ul><...
    Please show more of the code where that error is occurring

  3. #3
    SitePoint Member php_newatit's Avatar
    Join Date
    May 2007
    Location
    Ontario, Canada
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hi Mittineague

    Hi Mittineague,

    Thanks for your response! I've copied and pasted the php code into an html document for your review. Here is the link:

    http://www.northernphysique.com/php_main_code.html

    Thanks and take care!
    Sincerely in Christ,

    Jesse

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    errors

    I can't see why the console shows a ul tag, there aren't any in the file. But, ignoring the console, I see the error page has a "+ more info" that shows
    Error (ERROR_MISSING_OBJECT) :

    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 2121 (gallerystatus::error)
    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 305 (mysqldatabasestorage::_identifyentities)
    * in modules/core/classes/GalleryStorage.class at line 118 (mysqldatabasestorage::loadentities)
    * in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (gallerystorage::loadentities)
    * in modules/core/classes/GalleryCoreApi.class at line 2186 (galleryentityhelper_simple::loadentitiesbyid)
    * in modules/core/classes/GalleryTheme.class at line 1164 (gallerycoreapi::loadentitiesbyid)
    * in themes/nphysique/theme.inc at line 124 (nphysiquetheme::loadcommontemplatedata)
    * in modules/core/classes/GalleryTheme.class at line 900 (nphysiquetheme::showalbumpage)
    * in modules/core/classes/GalleryView.class at line 285 (nphysiquetheme::loadtemplate)
    * in main.php at line 287 (showitemview::doloadtemplate)
    * in main.php at line 87
    * in main.php at line 80
    Quote Originally Posted by php_newatit
    but there was an error in transferring it to my server
    I don't think this is a code problem. You said you suspect a database error. This is a possibility, but I think it is more likely that the "object" the error is referring to is more likely a missing class. If so, this could be because of an incorrect path to the apps files. You should go over the install config to make sure all the files are where they should be, and they know how to find each other.
    The file's lines around about line 80-87
    PHP Code:
    /* Otherwise, proceed with our regular process */
    require_once(dirname(__FILE__) . '/init.inc');
    $ret GalleryInitFirstPass();
    if (
    $ret->isError()) {
    _GalleryMain_errorHandler($ret->wrap(__FILE____LINE__), nullfalse);
    return;
    }

    /* Process the request */
    GalleryMain();
    }

    function 
    GalleryMain($embedded=false) {
    global 
    $gallery;

    /* Process the request */
    list($ret$g2Data) = _GalleryMain($embedded);
    if (
    $ret->isSuccess()) {
    $gallery->performShutdownActions(); 
    suggest to me that
    require_once(dirname(__FILE__) . '/init.inc');
    is failing.

  5. #5
    SitePoint Member php_newatit's Avatar
    Join Date
    May 2007
    Location
    Ontario, Canada
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unsure as to how to fix

    Hi Mittineague ,

    Thanks so much for your response. I appreciate this a lot.

    I'm still unsure as to how I can repair this issue, as I am very unfamiliar with PHP currently. Do you have any step-by-step solutions that I could perhaps give a try for now . Thanks so much in advance.
    Sincerely in Christ,

    Jesse


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •