SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

Tiribulus

Quote from: Arantor on November 27, 2009, 06:40:53 PM
@Tiribulus: The solution in that case is to not run the development on a public live server but do it offline where security is not an issue (that's how I do all my development)

For me this wouldn't be practical as this is my own server and I'd either have to have a duplicate forum (or 2 for the SMF2 forum as well) on the same machine or setup another machine. There were other obstacles there too. Maybe I'll take it up again in the future.

Arantor

You don't have to flat out duplicate everything, just enough to be able to test changes; my current RC2 test forum has 3 accounts and about 50 posts.
Holder of controversial views, all of which my own.


kota069

I just installed SMF Media Gallery 2.0.4 on SMF 1.1.10.

I can't upload to it.  I get the following:

Parse error: syntax error, unexpected $end in /home/xxxxxx/public_html/xxxxxxx/Sources/Subs-Graphics.php on line 1665

Could anyone offer any suggestions about this?
Thanks.......

Nao 尚

@tiribulus> Who said I don't enjoy my 200 tabs? As long as I can easily browse between them... (Thank God for status bar captions!)

@kota> You probably didn't upload your SMF correctly (bad FTP client?), or installed another mod that broke your Subs-Graphics.php file. Nothing to do with SMG.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

kota069

Quote from: Nao/Gilles on November 28, 2009, 02:48:14 AM
@kota> You probably didn't upload your SMF correctly (bad FTP client?), or installed another mod that broke your Subs-Graphics.php file. Nothing to do with SMG.

Not sure why you would assume so much.
The Board has been running perfectly since the original 1.1.4 install with more Mods than I care to mention including SMG 1.0.

Yesterday, I UNinstalled SMG 1.0 to install 2.0.4.
The only file that "failed" was load.php which I edited manually.
The install appeared smooth otherwise.

Upon testing the new install I discovered the above mentioned error.

I'm not understanding the "... unexpected $end ... line 1665" as line 1665 is in fact the closing php tag of the file: ?>.


Arantor

That error means there is a missing } somewhere.
Holder of controversial views, all of which my own.


Kindred

Quote from: kota069 on November 28, 2009, 08:34:45 AM
... with more Mods than I care to mention including SMG 1.0.

And there is the likely source...
you have so many mods that the uninstall of smg 1.0 removed some code that one of the other mods was depending on.. (specifically a closing bracket } )
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Tiribulus

Quote from: Nao/Gilles on November 28, 2009, 02:48:14 AM
@tiribulus> Who said I don't enjoy my 200 tabs? As long as I can easily browse between them... (Thank God for status bar captions!) >>>

Oh I'm sure you do. I was being jokingly sarcastic. You're the second person lately whose opinion I hold in high regard that has insisted on Opera's superiority. I may have to give it some more time. I remember IE2 and the old Netscape Navigator. I was just getting into computers then.

Vyache


AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

Nao 尚

Reparse it as HTML / view the source code.
You'll see that something (a portal?) is inserting some extraneous code and disrupting the flow.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

russ skinner

Have just installed SMF Media Gallery 2.04 onto a forum running SMF 2.0 RC2 and also the latest Simple Portal Mod. Pleased to say all is working well, however one minor glitch when 'Add user Album' is selected under 'My Albums Tab' the 'Album Details' section goes off the screen.

See attached screen dump.

Any ideas what may be causing the problem?

Thanks,

Russ

Nao 尚

People! When you have a problem, before posting on the official topic (for any mod), read the first page, and then the last few pages!
In this case--see previous page! ::)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

russ skinner

Apologies Nao/Gilles,

I have just been going through the thread and found your fix here.

Works perfectly now.


Nao 尚

I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Paracelsus

Ok, a little bug squashing...

I'm having this error message displayed whenever someone is on the "who" action page (and simultaneously someone accessed the gallery):
Fatal error: Unsupported operand types in /home/forumscp/public_html/Sources/Subs-MGallery.php on line 795

I was having this already with SMG 1.5.5 but I thought it could be due to the fact that it was an outdated version. But I've uninstalled that version, installed the most recent version and the error is still there. I've even tried to delete every language string related to the "who" action in SMG's language file but with no luck.

Any ideas?

Nao 尚

Quote from: Nao/Gilles on November 30, 2009, 04:54:09 AM
- Which version of PHP is installed?
- Does this help? Subs-MGallery.php, line 784, replace with:
Removing earlier post... I think I've found the problem.
This error is triggered because $mgalFunc is empty in the first place. However, it should NOT be empty at this point, because it's either filled with $smcFunc (SMF 2 RC) or $func (SMF 1). Maybe you're using an old SMF2 beta...? That would explain a lot. SMG is no longer compatible with these, BTW.

The easiest fix would be this one (which I'll be implementing): Subs-MGallery.php, add this before line 784:

if (empty($mgalFunc))
$mgalFunc = array();


It will still probably only *hide* the problem -- you will have many more elsewhere.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

russ skinner

I wonder if you anyone could please help me resolve an issue with the 'mass upload' feature which I cannot get to work.

I have searched through both the posts in this thread and on smf media.com support board, but I am still unsure where the problem lies.

I'm running SMF 2.0 RC2 & SMG 2.04 with the default curve theme. The only other mods I have installed are Simple Portal, Aeva and Users online today.

I have an exact copy of my remotely hosted  forum, + mods, running on a WAMPServer on my local machine and the mass upload feature works fine, however with the remote setup the process starts, but does not complete (see screen dump attachment).

I have both Java and flash enabled in Firefox, the 'About Gallery' page reports 'PHP's Safe Mode is disabled' and I do not believe this to be a crossdomain.xml issue as the process starts, or a quota issue.

Could it be a Mod security issue?

I am happy to provide full guest gallery privileges if this would help to sort the problem out.

Thanks,

Russ

Nao 尚

mod_security > I think it's fixed in SMG 2.0.4 anyway... (?)
Does single form upload work for that particular file?
Mr. Error log, what say you?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Paracelsus

Quote from: Nao/Gilles on November 30, 2009, 05:10:23 AM
Quote from: Nao/Gilles on November 30, 2009, 04:54:09 AM
- Which version of PHP is installed?
- Does this help? Subs-MGallery.php, line 784, replace with:
Removing earlier post... I think I've found the problem.
This error is triggered because $mgalFunc is empty in the first place. However, it should NOT be empty at this point, because it's either filled with $smcFunc (SMF 2 RC) or $func (SMF 1). Maybe you're using an old SMF2 beta...? That would explain a lot. SMG is no longer compatible with these, BTW.

The easiest fix would be this one (which I'll be implementing): Subs-MGallery.php, add this before line 784:

if (empty($mgalFunc))
$mgalFunc = array();


It will still probably only *hide* the problem -- you will have many more elsewhere.

I'm actually using SMF v1.1.10, but I'll try your suggestion.

Paracelsus

Following the post above... no, that didn't work.

Advertisement: