[SOLVED] parse error

Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sun, 2007-02-11 13:31

I get this error when trying to go into my site admin. Any ideas? The rest of the site is working fine. thanks

Parse error: parse error, unexpected $ in /hsphere/local/home/reiddust/museum.reiddust.com/wing/modules/ffmpeg/module.inc on line 208

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-02-11 13:46

looks like at least 1 file ( modules/ffmpeg/module.inc ) of your gallery isn't intact.
see:
FAQ: How can I make sure that my installation files are all intact?

--------------
Enter the Gallery 2 Theme Contest today!

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sun, 2007-02-11 22:53

I ran the upgrader like it said to do and got back these warnings. Should I just delete the ffmeg module and re-upload it?

modules/ffmpeg/AdminFfmpeg.inc
modules/ffmpeg/MovieThumbnailOption.inc
modules/ffmpeg/module.inc

thanks

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Mon, 2007-02-12 14:10

I tried just out of curiousity, deleting ffmeg modules ( which gallery didn't like to much) I retsored it, and then tested the site admin link again, and the mainpage for site admin came up, but there still was the above "error parse" message on modules. I went out of gallery, and opened it again, and now it's back to reading an error message when I click on site admin.

I am really at a loss what to do. The rest of the site is working fine, I even uploaded a photo without a problem. Any help would be appreciated.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-02-12 15:43

when you browse to http://museum.reiddust.com/wing/modules/ffmpeg/module.inc you can see that this file is not complete.
so it's clearly a file integrity problem.

i don't know where you have the modules/ffmpeg/ files from or how you extracted the .zip files, but the files on your server are not what we release as a product.

--------------
Enter the Gallery 2 Theme Contest today!

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Mon, 2007-02-12 16:31

I can't remember it's been over a year now, I either got it fom here or from one of the threads that had a link possibly.

I don't know code, or PHP well enough to mess around with it. I'm not sure what would be missing or supposed to be there. Is there an easy fix?

I thought about downloading a new version and just going thru the code to see what is missing or not, but if you say this isn't gallery's code, that won't do me much good..

Seems odd as I haven't done anything, and I got a new "tenant" so I was going to update their permissions, when I found the error.

If I was to delete this version and upload the verison from the downloads page (here), I shouldn't have to change all the paths and binary?

thanks for the help

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-02-12 16:53

> I don't know code, or PHP well enough to mess around with it. I'm not sure what would be missing or supposed to be there. Is there an easy fix?

no need to touch php code.
all you need are the files that we release with g2...

you can get the ffmpeg module files for your gallery 2 version here:
http://codex.gallery2.org/index.php?title=Gallery2:Download&oldid=8035#Modules

note: this for versin gallery 2.0.x. so if you ever upgrade to g2.1 or g2.2, ignore the above link and go to the normal download page.

--------------
Enter the Gallery 2 Theme Contest today!

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Mon, 2007-02-12 17:10

I'm on the latest g2.1.2, the step before the g2.2

So I'm clear on this, download Gallery's version, and then unzip it over the other ffmeg module on the server? Or do i delete the other ffmeg module?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-02-12 17:34

right, sorry. so here's the ffmpeg module for g2.1 (g2.1.2):
http://codex.gallery2.org/Gallery2:Download#Modules

download it, extract it, upload the files to your server overwriting the modules/ffmpeg/ folder.

--------------
Enter the Gallery 2 Theme Contest today!

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Mon, 2007-02-12 17:38

thank you, will let you know how it goes. I did notice, half the code in module.inc is missing...weird!

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Mon, 2007-02-12 17:49

It worked!! thank you so much valiant! not sure why it happened, but glad it was an easy fix :)