Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this  (Read 15593 times)

0 Members and 1 Guest are viewing this topic.

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

Fatal error: Cannot re-assign $this in C:\xampplite\htdocs\news\cpmfetch\cfrssget.php on line 141
the cftest.php worked

changed $partialurltocpm in all the demos nonething else works
rss_lastadded.php
Code: [Select]
<?php
//
// cfrssget example file that returns the last added images
//  RELEASE VERSION: 1.6.3
//

$ENABLED =true;

if (
$ENABLED) {

include "cfrssget.php";

$partialurltocpm "/gallery/"; //Part of the URL to CPG without the host and domain

//
// THESE SPECIFY THE INFORMATION USED IN YOUR FEED

$rssFeedTitle "FistFullOfCode Photo Gallery";
$rssFeedDescription "The last 25 photos added to Fist Full Of Code.";
$rssFeedSiteUrl "http://www.xfistfullofcode.com";
$rssFeedProviderUrl "http://www.xfistfullofcode.com/cftest/rss_lastadded.php";
$rssFeedImageTitle "FFOC Logo";
$rssFeedImageURL 'http://www.xfistfullofcode.com/images/ffoc_logo.gif';
$rssFeedImageLink "http://www.xfistfullofcode.com";

$rssFeedImageAlt "logo";

$rssItemTitle "%a :: %t";
$rssItemAlternateTitle "%a :: %f";

$rssItemDescription "%f from album %a<br/>Filesize %S kb<br/>%c<br/>Rated %V / 5 stars (%v votes total)";
$rssItemAlternateDescription "%f from %a<br/>Filesize %S kb<br/>%a: %d<br/>Rated %V / 5 stars (%v votes total)";
$totalToShow 5;

///// END OF USER SETTINGS /////////

$cfrss = new cfrss($partialurltocpm);
$cfrss->startFeed($rssFeedTitle$rssFeedDescription$rssFeedSiteUrl$rssFeedProviderUrl);
$cfrss->setFeedImage($rssFeedImageTitle,$rssFeedImageURL,$rssFeedImageLink,$rssFeedImageAlt);
$cfrss->setItemTitle($rssItemTitle,$rssItemAlternateTitle);
$cfrss->setItemDescription($rssItemDescription,$rssItemAlternateDescription);
$cfrss->addLastAddedMedia($totalToShow);
$cfrss->endFeed();
}

?>

« Last Edit: September 03, 2006, 08:23:48 pm by vuud »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #1 on: August 26, 2006, 06:13:00 am »

Fatal error: Cannot re-assign $this in C:\xampplite\htdocs\news\cpmfetch\cfrssget.php on line 141
the cftest.php worked

changed $partialurltocpm in all the demos nonething else works
rss_lastadded.php
Code: [Select]
<?php

$partialurltocpm "/gallery/"; //Part of the URL to CPG without the host and domain

[/quote]

Wierdthat should have been taken care of long ago...  AnywayI am guessing before that error it printed out "ERROR: Path to Coppermine Incorrect" and the path you had mentioned?  The fatal error, while ugly and completely uncalled for is not really the problem.

For 
some reasoncftest was able to find the right filesbut the rss code does not.  

Okay can you send me a link to your cftest.phpany message preceeding the FATAL thing, and that should do it for now.  PM the info if you are uncomfortable postingI will reply here though (for the forums sake)

Vuud

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #2 on: August 26, 2006, 11:32:05 am »

I cant give you a live link to cftest.php
as it is a local host test
I will to give you the source code when I can..... (on other computer)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #3 on: August 26, 2006, 03:22:26 pm »

I cant give you a live link to cftest.php
as it is a local host test
I will to give you the source code when I can..... (on other computer)

Is it a windows server/box by any chance?
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #4 on: August 26, 2006, 03:33:24 pm »

win XP sp2
runing xampplite
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #5 on: August 26, 2006, 03:43:10 pm »

win XP sp2
runing xampplite

Ah good luck there.  It's a complete bear getting paths out of the windows server... I would think apache on it would be better.  I can't tell without seeing the cpmfetch output.  Can you paste the output of the top of cpmtest here? 

Anyway, the new dev version fixes all those problems (I hope).  I'd love to have you try it out.  I am finishing the readme this morning, then I will be commiting it and posting.  I'll post here when it is up.



Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #6 on: August 26, 2006, 03:49:32 pm »

yes it is apache,

Quote
XAMPP Lite is a very reduced version of XAMPP with Apache 2.2.2 + PHP 5.1.4 (without PEAR) + MySQL 5.0.21 + phpMyAdmin 2.8.1 + Openssl 0.9.8b + SQLite 2.8.15 + eAccelerator 0.9.5 beta2. For lovers! For the lite versions exist no upgrades or addons. XAMPP Lite is an only "Take-Run-Delete-Forget-it" package.
- http://www.apachefriends.org/en/xampp-windows.html

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #7 on: August 26, 2006, 05:11:28 pm »

yes it is apache,
 - http://www.apachefriends.org/en/xampp-windows.html



the dev version is up now at:  http://cpmfetch.fistfullofcode.com - in the downloads section.  Read the release notes.

Oh, on windows the chmod and permissions probably do not apply to you.
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #8 on: August 27, 2006, 03:29:39 am »

Quote
5 You set your partial URL to /gallery PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = Windows NT RCIHARDS-LAPTOP 5.1 build 2600 INFO
40 WebServer = Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4 INFO
45 PHP Version = 5.1.4 INFO
55 DOCUMENT_ROOT: C:/xampplite/htdocs INFO
60 C_DOCUMENT_ROOT: Not found INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: C:/xampplite/htdocs/news/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is a good match PASS
80 Found CPG config file PASS

it going to be used on a business website so, I'll have to wait then :(
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #9 on: August 27, 2006, 04:04:10 am »

it going to be used on a business website so, I'll have to wait then :(

Did you try the dev version?  If you installed it correctly, it should work fine for you then.  One of the points of the new release was to resolve the windows issues.

BTW, don't run your live business server on windows... please, its for your own good.
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #10 on: August 27, 2006, 04:09:24 am »

I have just downloaded copperminefetch-1.6.4.zip
and when I go live with the business server it well most likely be linux
Logged

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #11 on: August 27, 2006, 04:39:08 am »

same error with copperminefetch-1.6.4.zip

Fatal error: Cannot re-assign $this in C:\xampplite\htdocs\news\cpmfetch\cfrssget.php on line 141

looks like i have to download the dev version :(
Logged

tom_a_sparks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
« Reply #12 on: August 27, 2006, 04:47:15 am »

the dev copperminefetch-1.9.3-dev.zip works ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 19 queries.