Parse error: syntax error, unexpected $end in /home/u4/solidsnake2003/html/cpmfetch/cpmfetch.php on line 1163
I am using the Coppermine version 1.4.10
I am using the most up to date version of Coppermine fetch 1.6.4
<?php
include "cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,4);
$objCpm->cpm_close();
?>
http://www.solidsnakelegacy.net/home_practice.php
http://www.solidsnakelegacy.net/gallery/
I am pretty good with computers, but Im kind of new with php with websites.
Quote from: SolidSnake2003 on March 01, 2007, 03:36:08 PM
Parse error: syntax error, unexpected $end in /home/u4/solidsnake2003/html/cpmfetch/cpmfetch.php on line 1163
I am using the Coppermine version 1.4.10
I am using the most up to date version of Coppermine fetch 1.6.4
<?php
include "cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,4);
$objCpm->cpm_close();
?>
http://www.solidsnakelegacy.net/home_practice.php
http://www.solidsnakelegacy.net/gallery/
I am pretty good with computers, but Im kind of new with php with websites.
Hello!
Okay, that is one wierd error - and your code seems to be fine.
My best guess at this point is that somehow, your download from my site, or upload to yours got corrupted. My first suggestion would be to redownload and upload again to your site (at least the file it is talking about). The only references I could find suggest a missing bracket or problems with short tags... neither of which should be an issue here (this version has been out for so long without this cropping up).
However, my alternative suggestion would be to download the latest dev release. I won't be supporting the 1.6.4 for much longer - and the dev release is about to become stable anyway. It's entirely different, easier to use, and about a bizzillion new features.
The downside? Well, the doc's are close to it - you just have to check the release notes that come with it for how to install, and how to create the object. Otherwise almost everything is done the same. If you run into problems with that one I am more than happy to help, since there really is no update documenation yet (Its all in the release notes) - but I am working on it.
If you still have the same problem, the new version can give me more info to work on it from.
Regards,
Vuud
ok now I didnt that, and it came to this
CpmFetch Installer for release 1.9.11 http://cpmfetch.fistfullofcode.com Test images: If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here. These images were found and displayed by using the following PHP code:
Warning: main(/gallery/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/u4/solidsnake2003/html/home_practice.php on line 89
Warning: main() [function.include]: Failed opening '/gallery/cpmfetch.php' for inclusion (include_path='.:') in /home/u4/solidsnake2003/html/home_practice.php on line 89
Fatal error: Cannot instantiate non-existent class: cpm in /home/u4/solidsnake2003/html/home_practice.php on line 90
Quote from: SolidSnake2003 on March 02, 2007, 12:14:20 AM
ok now I didnt that, and it came to this
CpmFetch Installer for release 1.9.11 http://cpmfetch.fistfullofcode.com Test images: If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here. These images were found and displayed by using the following PHP code:
Warning: main(/gallery/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/u4/solidsnake2003/html/home_practice.php on line 89
Warning: main() [function.include]: Failed opening '/gallery/cpmfetch.php' for inclusion (include_path='.:') in /home/u4/solidsnake2003/html/home_practice.php on line 89
Fatal error: Cannot instantiate non-existent class: cpm in /home/u4/solidsnake2003/html/home_practice.php on line 90
Righto... something is new and excitingly different about your server configuration. Nothing you did wrong I don't think.
Can you PM me a link to your install.php so I can view the output?
Dude, don't confuse me... I looked at your install.php and aside from not seeing photos, I did not get errors... I also don't do anything with anything named home_practice... what is that? Are you lumping errors together?
Ah after much trying to see what is going on I have it...
First, You did not do something incredibly boneheaded like do an include of the install.php in you home_practice.php page did you?
Second, of all, do you have any images in your gallery at all?
Quote from: SolidSnake2003 on March 02, 2007, 12:14:20 AM
ok now I didnt that, and it came to this
CpmFetch Installer for release 1.9.11 http://cpmfetch.fistfullofcode.com Test images: If all went well, you will see some random images from your gallery displayed here. If not, you may in fact have a problem and will need to seek help by clicking here. These images were found and displayed by using the following PHP code:
Warning: main(/gallery/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/u4/solidsnake2003/html/home_practice.php on line 89
Warning: main() [function.include]: Failed opening '/gallery/cpmfetch.php' for inclusion (include_path='.:') in /home/u4/solidsnake2003/html/home_practice.php on line 89
Fatal error: Cannot instantiate non-existent class: cpm in /home/u4/solidsnake2003/html/home_practice.php on line 90
I thought I had put files in the gallery, there is now files there.
I am sorry if I caused you some problems.
the install went fine, but for some reason the code is not working
its coming up with the unexpected $end, and now it has
Parse error: syntax error, unexpected $end in /home/u4/solidsnake2003/html/cpmfetch/cpmfetch.php on line 1163
Fatal error: Cannot instantiate non-existent class: cpm in /home/u4/solidsnake2003/html/home_practice.php on line 80
Quote from: SolidSnake2003 on March 02, 2007, 12:00:47 PM
I thought I had put files in the gallery, there is now files there.
I am sorry if I caused you some problems.
the install went fine, but for some reason the code is not working
its coming up with the unexpected $end, and now it has
Parse error: syntax error, unexpected $end in /home/u4/solidsnake2003/html/cpmfetch/cpmfetch.php on line 1163
Fatal error: Cannot instantiate non-existent class: cpm in /home/u4/solidsnake2003/html/home_practice.php on line 80
Sorry, I was a bit touchy last night - been very very sick and stuff had been pissing me off all day. Luckly I caught myself and sent the nice version instead of my first "take it out on someone draft" :)
Anyway, please post here the exact code you put into home_practice.php.
I figured out what went wrong, I somehow had the cpmfetch, and cpmfetch_dao in my html directory as well as the ones in the cpm directory. I removed them, and the code works perfectly. Thanks for all of the help you gave me. I greatly appreciate it :D
Quote from: SolidSnake2003 on March 02, 2007, 07:28:10 PM
I figured out what went wrong, I somehow had the cpmfetch, and cpmfetch_dao in my html directory as well as the ones in the cpm directory. I removed them, and the code works perfectly. Thanks for all of the help you gave me. I greatly appreciate it :D
I have no idea why that would do that, but its good to know for if it ever happens again!