cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this
 

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

Main Menu

cpmFetch 1.6.3: rss_lastadded.php fatal error: Cannot re-assign $this

Started by tom_a_sparks, August 26, 2006, 06:02:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tom_a_sparks

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 <?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();
}

?>


vuud

Quote from: tom_a_sparks on August 26, 2006, 06:02:39 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 <?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

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

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)

vuud

Quote from: tom_a_sparks 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)

Is it a windows server/box by any chance?
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


vuud

Quote from: tom_a_sparks on August 26, 2006, 03:33:24 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.



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

yes it is apache,

QuoteXAMPP 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


vuud

Quote from: tom_a_sparks on August 26, 2006, 03:49:32 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.
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

Quote5 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 :(

vuud

Quote from: tom_a_sparks on August 27, 2006, 03:29:39 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.
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

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

tom_a_sparks

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 :(