| Author | Message |
| Post Title: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Tue Dec 06, 2005 1:16 pm
Hey guys, I'm running revision 1.16, and when I tried to do the export, I got a blank white screen in the pop-up window, and in my server's logfile, I have the following:
Code: › [Tue Dec 06 12:49:22 2005] [error] [client XXX.XXX.XXX.XXX] PHP Warning: extract() [<a href='function.extract'>function.extract</a>]: First argument should be an array in /htdocs/modules/gallery2/admin/export.php on line 244, referer: http://www.mydomain.com.com/admin.php?op=gallery2
[Tue Dec 06 12:49:22 2005] [error] [client XXX.XXX.XXX.XXX] PHP Fatal error: Cannot redeclare g2_message() in /htdocs/modules/photos/admin/export.php on line 65, referer: http://www.mydomain.com/admin.php?op=gallery2 I'm not sure what could be causing this... Any ideas? I'm running PHP 5.0.5. |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Dec 06, 2005 1:36 pm
thanks for the pointer, i'll get it fixed ASAP.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Tue Dec 06, 2005 1:37 pm
Thanks bud!
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 10:27 am
try removing this line from the export.php file:
PHP: ›
<?php extract($var); ?>and let me know if it fixes the first error. |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:06 am
But of course it did.
Code: › [Wed Dec 07 11:05:23 2005] [error] [client XXX.XX.XX.XXX] PHP Fatal error: Cannot redeclare g2_message() in /htdocs/modules/photos/admin/export.php on line 65, referer: http://www.mydomain.com/admin.php?op=gallery2 |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:07 am
it fixed the error and the export was successful? go me
i don't know why it considers it re-declared either....perhaps i'll just rename it |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:10 am
No, it only fixed the FIRST error...
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:11 am
haha...does the re-declaration error interfere with the export, or does the export proceed without a problem?
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:13 am
No, the export doesn't work at all.
Code: › [Wed Dec 07 11:05:23 2005] [error] [client XXX.XX.XX.XXX] PHP Fatal error: Cannot redeclare g2_message() in /htdocs/modules/photos/admin/export.php on line 65, referer: http://www.mydomain.com/admin.php?op=gallery2 |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:15 am
grumble...ok
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:18 am
hmm...ok, open export.php and rename g2_message to g2_statusmessage (and replace calls to g2_message with g2_statusmessage). there should be 3 replacements in addition to the renaming of the function.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:21 am
Ok, I'll give that a whirl. I think I did something similar, but I'll give it a try.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:22 am
PHP Fatal error: Cannot redeclare g2_statusmessage() in /htdocs/modules/photos/admin/export.php on line 65, referer: http://www.mydomain.com/admin.php?op=gallery2
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:23 am
Hrm... What in the WORLD is going on here... ? I even reinstalled the whole damn thing to see if that helped, and no go.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:24 am
this is really bizzarre....i'm gonna ask one of the code gurus in #gallery...
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:26 am
Ok cool.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:32 am
open admin/case/case.gallery2.php and modules/gallery2/admin/case.php and replace:
include("modules/$module_name/admin/export.php"); with include_once("modules/$module_name/admin/export.php"); see if that works |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:41 am
Nope, same thing... ?!
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:42 am
you left the function renamed when you replaced those two "include" lines?
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:48 am
Yep. Didn't change anything other than changing those includes to include_onces.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 11:50 am
hmm...open the export.php file and add:
PHP: ›
<?php $ret = GalleryEmbed::done(); ?>before PHP: ›
<?php $percentInDecimal = ($users_imported / $ucount) *100; ?>sholdn't make a difference, but you never know |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:54 am
Ok, I'll do that too... However, just on a whim, I changed all the
Code: › include("modules/".MOD_NAME."/gallery2.cfg");
to Code: › include_once("modules/".MOD_NAME."/gallery2.cfg");
and now it seems to get a bit further... Still getting some errors, though, but I'll take a look into 'em.. Here are the errors: Code: › PHP Warning: init(/embed.php) [<a href='function.init'>function.init</a>]: failed to open stream: No such file or directory in /htdocs/modules/photos/admin/export.php on line 112
PHP Fatal error: init() [<a href='function.require'>function.require</a>]: Failed opening required '/embed.php' No idea what's up with that, but I'll keep looking. |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:56 am
Ok, changed those back to includes and did that change that you wanted me to, and still getting the Cannot redeclare g2_statusmessage() thing.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 11:57 am
BTW, are you able to replicate this problem?
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 12:08 pm
i will attempt to do so this evening
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 12:15 pm
Ah, ok.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 2:44 pm
try adding:
PHP: ›
<?php var_dump(debug_backtrace()); ?>to the file (experiment in various locations) and see what it reveals. it will show what files are repeatedly calling this function (and it isn't just you). |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 2:48 pm
Oh nice.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 2:49 pm
you might want to enclose it in < pre > tags so that it's easily readable...
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 2:50 pm
Yeah, or a view source.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 2:52 pm
oh bonus....if you're using php 5, you can use:
PHP: › instead...<?php debug_print_backtrace(); ?> |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 2:53 pm
Hrm... Of course, it *still* doesn't run, because it STILL thinks it's being redeclared.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 2:53 pm
And yes, I'm running php5, so I'll give that a whirl too.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 2:54 pm
Still no go, same redeclaration thing.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 2:55 pm
try putting it at the very top of the file, after the opening < ? php
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 2:56 pm
Did that.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:06 pm
does this show up in the popup window, or in your error log?
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:07 pm
In the error log only. The popup is completely blank.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:08 pm
i'm showing it in my error log as well (now that i look at it), but my popup shows the progress bar (FF 1.5). however, with IE, it's blank. time to add a user agent check..
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:23 pm
Still haven't figured it out yet, but while I'm in there, I found this, too...
replace: Code: › function init() {
global $gallery; with Code: › function init() {
global $gallery, $currentlang; |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:27 pm
Might as well make that:
Code: › function init() {
global $gallery, $currentlang, $phpnuke2G2Lang; Also... I see this in there too... Code: › 'fullInit' => $fullInit
However, there is no $fullInit ANYWHERE. |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:27 pm
yes, i saw that too
i also know what is going on. i did a debug dump (in firefox). at the top of the popup window i get: Code: › array(2) {
[0]=> array(3) { ["file"]=> string(62) "/home/nuk3dari/public_html/phelix/admin/case/case.gallery2.php" ["line"]=> int(55) ["function"]=> string(7) "include" } [1]=> array(4) { ["file"]=> string(43) "/home/nuk3dari/public_html/phelix/admin.php" ["line"]=> int(512) ["args"]=> array(1) { [0]=> string(62) "/home/nuk3dari/public_html/phelix/admin/case/case.gallery2.php" } ["function"]=> string(7) "include" } } I then get the "10000 users exported" message, and then, BELOW the "close window" button, I get: Code: › array(2) {
[0]=> array(3) { ["file"]=> string(65) "/home/nuk3dari/public_html/phelix/modules/gallery2/admin/case.php" ["line"]=> int(55) ["function"]=> string(7) "include" } [1]=> array(4) { ["file"]=> string(43) "/home/nuk3dari/public_html/phelix/admin.php" ["line"]=> int(519) ["args"]=> array(1) { [0]=> string(65) "/home/nuk3dari/public_html/phelix/modules/gallery2/admin/case.php" } ["function"]=> string(7) "include" } } AGAIN. Now, why this is being included TWICE is beyond me. Maybe you can see something I can't. |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:30 pm
CRAP!!! I FIGURED IT OUT!! Hahaha...ok, in my efforts to make this compatible w/ users of old and new phpnuke, it caused this error. i think i've got it licked, i'm testing now.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:31 pm
Sweeeeet.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:33 pm
ding ding ding...i've got it
I'll have to make a note in the readme... If you're using a new version of phpnuke, where the module admin is done through modules/<modulename>/admin/ , then you don't upload the html/admin/ folder from the integration package. so, to solve your problem, delete admin/links/links.gallery2.php and admin/case/case.gallery2.php i'll have to make an install with an old version of nuke to see if it effects those as well. |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:34 pm
Gotcha.
I must have cut and paste stuff in here. Removed. |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:34 pm
Um, that last post has stuff in it that's not mine.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:42 pm
Odd... Now there's nothing in the error log, but it's just giving me a blank screen...
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:44 pm
using IE or FF?
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:46 pm
IE. I'll try it in FF.
Also, I just noticed that some of the stuff uses $module_name, and other stuff uses a MOD_NAME define... Should I modify it all to use MOD_NAME? |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:47 pm
Same in FF... Blank popup.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:50 pm
try it ($module_name, MOD_NAME switch) see what happens
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:51 pm
Ok cool.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 3:52 pm
BTW, I'm running PHP-Nuke 7.6 patched, dunno if I actually ever mentioned that.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Dec 07, 2005 3:55 pm
try adding ob_flush(); before each of the flush(); calls in the export.php file....off to home now
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 4:03 pm
Yeah, that didn't do it.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 7:43 pm
Just an update: everything WORKS, just nothing is displayed in the popup window, from what I can tell.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 8:01 pm
Aha. I removed the ob_end_flush() from the beginning of the file, and at LAST it's showing the progress meter.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Wed Dec 07, 2005 8:27 pm
The progress meter wasn't working right, however... At least not in IE. So I fixed it.
And I would have put the fully working export.php in a code block, but it's telling me that there's illegal html in there. *sigh* |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 7:07 am
it's the "javascript" in the code block, just space out the word like this:
Code: › j a v a s c r i p t
or, email the code to me: dari AT nukedgallery DOT net (credit will be given in the ChangeLog). thanks for your assistance in tackling this |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Thu Dec 08, 2005 9:08 am
No problem.
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Thu Dec 08, 2005 9:25 am
Also, I noticed that showSidebar wasn't being updated correctly in the configuration files... I fixed that also.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 11:32 am
the next version of the package is a MAJOR overhaul. it's no longer stored in a config file, but in a new database table, and it has some auto version checking and notifies you if you've got an out of date package. so the fix for the showsidebar won't be needed (thanks for the effort, though), but i will need to incorporate your changes for the popup window. thanks again
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Thu Dec 08, 2005 11:34 am
You bet.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 11:46 am
got your fixes, thanks
|
| Author | Message |
| Post Title: Re: Export problem | |
Darsch7
Joined: Nov 13, 2005 Posts: 79
|
Posted: Thu Dec 08, 2005 12:34 pm
AHAHAHHAH GOOD NEW .... Very thanks for all of this mans !!!
Have a good launch Dari, i am waiting here !!!!!!!!! |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 12:58 pm
should be available now via www.nukedgallery.net/downloads
you can delete the gallery2.cfg file from your filesystem, as the new info is stored in your database. |
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Thu Dec 08, 2005 1:25 pm
On the download page, it's still showing:
For the tar.gz: Version: 1.0 Added on: 06-Dec-2005 And for the .zip: Version: 1.0 Added on: 24-May-2005 |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 1:26 pm
heh..yeah i should update that..it's the new files though
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Thu Dec 08, 2005 1:27 pm
Ok cool.
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 1:28 pm
stupid phpnuke download admin won't let me change the file date...phpmyadmin here i come
|
| Author | Message |
| Post Title: Re: Export problem | |
Vermithrax
Joined: Nov 22, 2005 Posts: 42
|
Posted: Thu Dec 08, 2005 1:47 pm
Heheheh.
|
| Author | Message |
| Post Title: Re: Export problem | |
Darsch7
Joined: Nov 13, 2005 Posts: 79
|
Posted: Thu Dec 08, 2005 2:16 pm
you can delete the gallery2.cfg file from your filesystem, as the new info is stored in your database.
I think you should add it on the ReadME |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Dec 08, 2005 2:21 pm
heh..perhaps i will
|
| Author | Message |
| Post Title: Re: Export problem | |
Darsch7
Joined: Nov 13, 2005 Posts: 79
|
Posted: Thu Dec 08, 2005 4:53 pm
perhaps it will be good so
|
| Author | Message |
| Post Title: Re: Export problem | |
Adrenalizer3
Joined: Jul 31, 2003 Posts: 2
|
Posted: Thu Dec 22, 2005 10:32 pm
Code: › Fatal error: Cannot redeclare g2_message() (previously declared in /my/info/public_html/bwrnuke/modules/gallery2/admin/export.php:61) in /my/info/public_html/bwrnuke/modules/gallery2/admin/export.php on line 61
I am getting a similar Fatal Error when trying to export users. Any help? Thank you |
| Author | Message |
| Post Title: Re: Export problem | |
zipp
Joined: Aug 25, 2005 Posts: 7
|
Posted: Fri Dec 23, 2005 8:21 am
I got that error as well , but when i checked the users in G2 they were added from phpnuke
|
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Dec 23, 2005 8:28 am
please read the "Important" block in the readme ( http://cvs.sourceforge.net/viewcvs.py/* ... installing ) dealing with versions of phpnuke.
|
| Author | Message |
| Post Title: Re: Export problem | |
dholt
Joined: Nov 30, 2005 Posts: 34
|
Posted: Sat Dec 24, 2005 12:03 pm
Exporting Users
what does this mean and what do I need to do to change it. Warning: userexport(/embed.php): failed to open stream: No such file or directory in /home/foutwoz1/public_html/crazygamerz/modules/gallery2/admin/export.php on line 138 Fatal error: userexport(): Failed opening required '/embed.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/foutwoz1/public_html/crazygamerz/modules/gallery2/admin/export.php on line 138 |
| Author | Message |
| Post Title: Re: Export problem | |
bigdmeister
Joined: Sep 03, 2003 Posts: 429
|
Posted: Sat Dec 24, 2005 3:30 pm
It's looking for the embed.php file and can't seem to find it.
Line 138: Code: › require_once ($embedphpfile."/embed.php");
Not sure if that helps or not but check to make sure it's uploaded from your integration package. It's almost Christmas eve where you are, isn't it? |
| Author | Message |
| Post Title: Re: Export problem | |
adrenarush
Joined: Dec 23, 2005 Posts: 12
|
Posted: Sat Dec 24, 2005 4:19 pm
I am stuck on this same issue and can't seem to find the answer. I have been pouring over these forum posts for the past two days and have been unable to find the answer. When I try to do a user export I get the following error.
Fatal error: Cannot redeclare g2_message() (previously declared in /home/jacobspl/public_html/home/modules/Gallery/admin/export.php:61) in /home/jacobspl/public_html/home/modules/Gallery/admin/export.php on line 61 And when I try to create a new user in NukePHP I get the following error upon clicking on the link in the activation e-mail. Warning: activate(/embed.php): failed to open stream: No such file or directory in /home/jacobspl/public_html/home/modules/Your_Account/index.php on line 224 Fatal error: activate(): Failed opening required '/embed.php' (include_path='.:/usr/local/lib/php') in /home/jacobspl/public_html/home/modules/Your_Account/index.php on line 224 In addition, your link above regarding the IMPORTANT message refers to files to delete if you are lower than or greater than v7.5 Nuke, but not what to do if you have v7.5. Should I assume I keep all files if we are using v7.5? |
| Author | Message |
| Post Title: Re: Export problem | |
dholt
Joined: Nov 30, 2005 Posts: 34
|
Posted: Sun Dec 25, 2005 11:55 am
Marry Christmas all, My friend raven over at ravens nuke fixed it. Not sure what he did but did it with no help from here lol.
we were haveing many other problems with blank pages and so on but all better. Thanks bigdmeister for your response as you are the best. Can't wait for the new package of Gallery2 Love gallery2 by the way. no problem with it so far. It's almost Christmas eve where you are, isn't it? I'm with my friends here online!!!!! right were I belong Have a Great Chistmas |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Dec 25, 2005 12:04 pm
raven sent me a PM a few days ago with a question regarding this issue. i'm not sure if my advice was what enable him to help you, but if so, yay. if not, still yay, since you're up and running now. ask him what he did so that we can add it to our README or FAQ.
|
| Author | Message |
| Post Title: Re: Export problem | |
dholt
Joined: Nov 30, 2005 Posts: 34
|
Posted: Sun Dec 25, 2005 2:03 pm
sure will Dari and Thanks to you for all your hard work here. I think you said it may have had something to do with nuke sentinal but that was not the case, but I will ask him, not sure if he will get back to me soon as it is christmas and he spent christmas eve with me getting this to work. I will ask him to pm you as he said you were a close friend of his.
I would sujest to all to upgrade or downgrade to nuke 7.6 as there is just to many problems with anything else. Thanks again |
| Author | Message |
| Post Title: Re: Export problem | |
Ivo2
Joined: Apr 20, 2003 Posts: 3
|
Posted: Sat Dec 31, 2005 2:54 am
Anyway what I do I got this errors
Quote: › Warning: userexport(): open_basedir restriction in effect. File(/embed.php) is not within the allowed path(s): (/www/htdocs/xxx/:/tmp:/usr/bin:/www/htdocs/xxx:/bin:/usr/local/bin:/usr/share/php) in /www/htdocs/xxx/modules/gallery2/admin/export.php on line 138
Warning: userexport(/embed.php): failed to open stream: Operation not permitted in /www/htdocs/xxx/modules/gallery2/admin/export.php on line 138 Fatal error: userexport(): Failed opening required '/embed.php' (include_path='.:/usr/share/php:..') in /www/htdocs/xxx/modules/gallery2/admin/export.php on line 138 PhpNuke 7.3, I've tried with this html/modules/gallery2/admin/case.php html/modules/gallery2/admin/links.php and than with this html/admin/case/case.gallery2.php html/admin/links/links.gallery2.php nothing helped, always get the error messages What's wrong in my installation ? |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Dec 31, 2005 8:15 am
what are the contents of your g2_config table?
|
| Author | Message |
| Post Title: Re: Export problem | |
Ivo2
Joined: Apr 20, 2003 Posts: 3
|
Posted: Sat Dec 31, 2005 9:49 am
dari wrote: › what are the contents of your g2_config table?
I don't know what you mean ? g2_Access_Map unil g2_UserGroupMap I have installed gallery2, installed all db tables, then installed phpnuke integration. nuke_g2config: embedphpfile embedUri relativeG2path loginRedirect activeUserId embedPath cookiepath showSidebar g2configurationDone embedVersion |
| Author | Message |
| Post Title: Re: Export problem | |
Ivo2
Joined: Apr 20, 2003 Posts: 3
|
Posted: Sat Dec 31, 2005 10:38 am
I've deleted nuke_g2config table and tried a new installation.
Now it's working But why not 1st time ? |
| Author | Message |
| Post Title: Re: Export problem | |
-UK-viRuS
Joined: Nov 29, 2005 Posts: 1
|
Posted: Mon Jan 02, 2006 12:13 pm
Hi There
I am getting something similar Code: › Warning: activate(): open_basedir restriction in effect. File(/embed.php) is not within the allowed path(s): (/var/www/vhosts/oursite.com/httpdocs:/tmp) in /var/www/vhosts/oursite.com/httpdocs/modules/Your_Account/index.php on line 635
Warning: activate(/embed.php): failed to open stream: Operation not permitted in /var/www/vhosts/oursite.com/httpdocs/modules/Your_Account/index.php on line 635 Fatal error: activate(): Failed opening required '/embed.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/oursite.com/httpdocs/modules/Your_Account/index.php on line 635 Ok, we are running PHP-Nuke 7.6 (Patched), NSN Sentinel 2.4.2 and Gallery Integration package 0.4.3. The line 635 from the index.php of the Your_Account module is here... Code: › require_once ($embedphpfile."/embed.php");
There is also this happening when attempting to add a photo. Code: › Error
An error has occurred. Back to the Gallery Error Detail + Error (ERROR_PERMISSION_DENIED) : in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 67 (gallerystatus::error) in modules/core/classes/GalleryCoreApi.class at line 447 (galleryuserhelper_simple::asserthasitempermission) in modules/core/ItemAdd.inc at line 330 (gallerycoreapi::asserthasitempermission) in modules/core/ItemAdmin.inc at line 147 (itemaddview::loadtemplate) in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate) in modules/core/classes/GalleryView.class at line 285 (siriuxtheme::loadtemplate) in main.php at line 287 (itemadminview::doloadtemplate) in main.php at line 87 in modules/core/classes/GalleryEmbed.class at line 153 in /var/www/vhosts/oursite.com/httpdocs/modules/gallery2/index.php at line 220 (galleryembed::handlerequest) in /var/www/vhosts/oursite.com/httpdocs/modules.php at line 57 Any help would be greatly appreciated and anything you wish me to supply details of, please just ask! Thanks |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jan 03, 2006 2:14 pm
disable sentinel and try again.
what're the contents of your nuke_g2config table? |
| Author | Message |
| Post Title: Re: Export problem | |
Bravo2zero
Joined: Nov 29, 2005 Posts: 8 Location: uk
|
Posted: Sat Jan 07, 2006 6:45 am
hope this is correct that you need, i have posted this for uk-virus
thanks in advance CREATE TABLE `nuke_g2config` ( `embedphpfile` varchar(255) NOT NULL default '', `embedUri` varchar(255) NOT NULL default '', `relativeG2Path` varchar(255) NOT NULL default '', `loginRedirect` varchar(255) NOT NULL default '', `activeUserId` int(10) NOT NULL default '0', `embedPath` varchar(255) NOT NULL default '', `cookiepath` varchar(255) NOT NULL default '', `showSidebar` tinyint(1) NOT NULL default '0', `g2configurationDone` tinyint(1) NOT NULL default '0', `embedVersion` varchar(255) NOT NULL default '' ) TYPE=MyISAM; -- -- Dumping data for table `nuke_g2config` -- INSERT INTO `nuke_g2config` (`embedphpfile`, `embedUri`, `relativeG2Path`, `loginRedirect`, `activeUserId`, `embedPath`, `cookiepath`, `showSidebar`, `g2configurationDone`, `embedVersion`) VALUES ('/var/www/vhosts/nissan4x4ownersclub.co.uk/httpdocs/gallery2', 'modules.php?name=gallery2', '/gallery2/', 'modules.php?name=Your_Account', 0, '/', '/', 0, 1, '0.4.3'); |
| Author | Message |
| Post Title: Re: Export problem | |
Bravo2zero
Joined: Nov 29, 2005 Posts: 8 Location: uk
|
Posted: Sat Jan 07, 2006 6:48 am
just wanted to ask on something i spotted in the url of the errors,
Warning: activate(): open_basedir restriction in effect. File(/embed.php) is not within the allowed path(s): (/var/www/vhosts/oursite.com/httpdocs:/tmp) in /var/www/vhosts/oursite.com/httpdocs/modules/Your_Account/index.php on line 635 Warning: activate(/embed.php): failed to open stream: Operation not permitted in /var/www/vhosts/oursite.com/httpdocs/modules/Your_Account/index.php on line 635 Fatal error: activate(): Failed opening required '/embed.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/oursite.com/httpdocs/modules/Your_Account/index.php on line 635 oursite.com???? is this the problem i wonder ???? if so where would you need to alter that??? T I A B2Z |
| Author | Message |
| Post Title: Re: Export problem | |
Bravo2zero
Joined: Nov 29, 2005 Posts: 8 Location: uk
|
Posted: Sun Jan 08, 2006 4:36 pm
just wondered if anyone can comment on this please, causing big problems on our site with registering members still.
thanks inadvance B2Z |
| Author | Message |
| Post Title: Re: Export problem | |
dari
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jan 09, 2006 8:38 am
am i reading this correctly?
/var/www/vhosts/nissan4x4ownersclub.co.uk/httpdocs/gallery2 gallery2 should be in your modules directory: /var/www/vhosts/nissan4x4ownersclub.co.uk/httpdocs/modules/gallery2 if not, move it, and re-run the integration config to update it. |
| Author | Message |
| Post Title: Re: Export problem | |
Bravo2zero
Joined: Nov 29, 2005 Posts: 8 Location: uk
|
Posted: Mon Jan 09, 2006 2:31 pm
we have sorted it now and all errors fixed, except i can't see how to let registered members upload without allowing permission to delete every album in the gallery????????
i have tried every combination of permissions etc i can think of, one thing i think is strange, we are accessing the gallery via the modules gallery2 link? you can also access via gallery2/main.php which gives slightly different theme colours and text??? either members can or can't upload themselves, if they do then they can also use the drop down boxes to delete every album etc as well as other functions like edit permissions, almost like they are admin, another weird thing is we setup some test accounts on normal user status, these also had what we call admin rights, and it also showed my admin login still in the gallery when i was logged out of nuke completely????? not sure if we have something terribly wrong on permissions chmods somewhere? or we hav a duff install package? something else in an empty album there is a add photo etc link, once the first is uploaded that then dissapears. looking at pulling the plug on gallery2 and trying something else. thanks for all you advice B2Z |