Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 10:20:12 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155401 Posts in 21698 Topics by 7729 Members
Latest Member: adnan
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: GDPICS PHP error - line 178  (Read 698 times)
aimeeish

Offline Offline

Posts: 28


« on: July 04, 2008, 05:51:00 PM »

Code:
Fatal error: Using $this when not in object context in *****/modules/gdpics/view.php on line 178

I checked around lines 178 on view.php:
Code:
   // Generate breadcrumbs
    if ($display_breadcrumbs=='yes') {
        $split = explode('/', $album);
        echo '<div class="path"><a href="'.$_SERVER['PHP_SELF'].'">'.$GDTEXT['HOME'].'</a> '.$path_sym.' ';
        for ($i = 0; $i < count($split)-1; $i++) {
            echo '<a href="'.$_SERVER['PHP_SELF'].'?album=';
            for ($j=0; $j < $i+1; $j++) {
                echo '' .myurlencode($split[$j]). '/';
            }
            $temp = str_replace($this->string_search,'',$split[$i]);
            echo '">' .$temp. '</a> '.$path_sym.' ';
        }
        echo '</div>';
    }

What's going on here? Everything was working fine until this random error popped up.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: July 04, 2008, 05:59:05 PM »

These errors do not just appear out of nowhere ... what was the last change made on the server? Maybe deletion of a folder or a file which is still used within the Module?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

aimeeish

Offline Offline

Posts: 28


« Reply #2 on: July 04, 2008, 11:18:02 PM »

I didn't do anything to the gallery. It just randomly came up with the error.

ETA: I removed the breadcrumbs. So, it must be a problem with the breadcumbs. I also searched the forum to see if some one else has had the same problem as me - one has; however the person who gave the "fix" for this piece of code did not work for me.
« Last Edit: July 04, 2008, 11:20:23 PM by aimeeish » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!