https://www.icyphoenix.com/viewtopic.php?f=26&t=836
-----------------------------------
GeekyGirl
Wed 10 Jan, 2007 02:55

FAP SUPPORT - Problem With Personal Galleries
-----------------------------------
Hello,

I'm happy that I found your new site (thanks to your email!) since I wasn't able to register on your old one.

BTW - this site looks FANTASTIC!!!  If I didn't just spend all the time setting up my new forum, I would have given this one a try.

Now on to the issue at hand...
I set up the FAP and have version 1.4.0.  When I try to set up a personal gallery, I get the following error:

Warning: main(./language/lang_/lang_album_main.php): failed to open stream: No such file or directory in /home/learn2sc/public_html/Forum/album_personal_cat_admin.php on line 34

I'm still learning a lot about PHP, the bb and coding so I'm not very knowledgeable when it comes to debugging.  I'm not sure what I'm supposed to be looking for with this error or how to correct it so any help would be greatly appreciated.


-----------------------------------
Artie
Thu 11 Jan, 2007 00:17

Re: Problem With Personal Galleries
-----------------------------------
For some reason your default language is not being set here.
Are you seeing any other problems ?


-----------------------------------
jz
Thu 11 Jan, 2007 00:47

Re: Problem With Personal Galleries
-----------------------------------
I think you are missing this file: [b][color=#e50000]lang_album_main.php [/color][/b]


-----------------------------------
GeekyGirl
Thu 11 Jan, 2007 01:05

Re: Problem With Personal Galleries
-----------------------------------
[quote user="jz" post="6954"]I think you are missing this file: [b][color=#e50000]lang_album_main.php [/color][/b][/quote]

I show that I have that file but is there something specific that should be in it that I need to look for or should I try to reupload the file all together.  If reloading the file is advised, is there one that is different than the one I have that came with the zipped file or one that I should try?

I'm not seeing any other problems...I've been able to upload pictures, set up categories, etc. just fine.  I haven't tested it with other users yet.


-----------------------------------
Artie
Thu 11 Jan, 2007 02:14

Re: Problem With Personal Galleries
-----------------------------------
I'm sure your file is fine, the path, it is trying to access it at, is the problem.

For some reason this [highlight=#FFFFAA]$language = $board_config['default_lang']; [/highlight] is not set here.

Your current path to the file is [highlight=#FFFFAA]/language/lang_/lang_album_main.php [/highlight]

And it should be (for english) [highlight=#FFFFAA]/language/lang_english/lang_album_main.php [/highlight]

Off hand I don't know why this is, but I haven't forgot you....... YET  :mrgreen:


-----------------------------------
Artie
Thu 11 Jan, 2007 02:41

Re: Problem With Personal Galleries
-----------------------------------
Try this and see if it makes any difference...

OPEN [b]album_personal_cat_admin.php[/b]

FIND
[codeblock]require_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_album_main.' . $phpEx);
require_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_album_admin.' . $phpEx);
require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx);[/codeblock]

REPLACE WITH
[codeblock]
//require_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_album_main.' . $phpEx);
//require_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_album_admin.' . $phpEx);
//require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx);
require_once($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.' . $phpEx);
require_once($phpbb_root_path . 'language/lang_' . $language . '/lang_album_admin.' . $phpEx);
require($phpbb_root_path . 'language/lang_' . $language . '/lang_admin.' . $phpEx);[/codeblock]


-----------------------------------
GeekyGirl
Thu 18 Jan, 2007 06:07

Re: Problem With Personal Galleries
-----------------------------------
Sorry I haven't been around.  I'm not getting emails when someone replies to my posts - I'll have to check my settings again.

Anyway, I've been dealing with another computer issue in Access this past week and have also been in limbo with my website while it changes over to a new host.  As soon as I have access to the site again (no pun intended  :mrblue: ), I'll give the code you posted a try!

I'll get back with you either way.

Thanks.


-----------------------------------
GeekyGirl
Mon 22 Jan, 2007 01:41

Re: Problem With Personal Galleries
-----------------------------------
I changed the code as stated above.  It didn't solve the problem.  I still get the same error which I included below since it has the new domain name in it.

Warning: main(./language/lang_/lang_album_main.php) [function.main]: failed to open stream: No such file or directory in /home/scrapuni/public_html/Forum/album_personal_cat_admin.php on line 37


-----------------------------------
Artie
Mon 22 Jan, 2007 19:10

Re: Problem With Personal Galleries
-----------------------------------
Strange  :?
There is nothing that you have edited that would cause this, without causing other errors.

Wonder if you may still be having corrupt FTP files ?

You might try re- FTPing [highlight=#FFFFAA]album_mod/album_common.php[/highlight] and even [highlight=#FFFFAA]album_personal_cat_admin.php[/highlight]

[i]Restore the file above that you modified, back to it's original state .......[/i]


-----------------------------------
GeekyGirl
Mon 22 Jan, 2007 19:50

Re: Problem With Personal Galleries
-----------------------------------
Tried that already with no change.

I've had this problem since the very first clean install on my old old site so I don't know where else to look.  Although I already have the 1.4.0 version installed, is there a way to try to install that update to see if it resolves the issue.  If I remember correctly, I had first installed version 1.2.1 and then upgraded to 1.4.0 - could that be contributing to the problem?


-----------------------------------
Artie
Mon 22 Jan, 2007 22:05

Re: Problem With Personal Galleries
-----------------------------------
I don't think it's related to any previous installation, but lets' refresh a bit.

For this installtion (excluding the database) .... are the phpbb & album files clean.... as in contain no other version's code or files ?
AFAYK there are no other problems ?

Could you attach a copy of  your [highlight=#FFFFAA]album_personal_cat_admin.php[/highlight] file here .... preferable the one from your server.


-----------------------------------
GeekyGirl
Mon 22 Jan, 2007 22:32

Re: Problem With Personal Galleries
-----------------------------------
I didn't do a complete reinstall of FAP.  I just restored the backup database and restored the backup files for the forum.  I am not experiencing any other problems that I know of...my website isn't completely active so the only tests have be done by me and a fake account I set up to test.  But I can post images, edit them, have complete control in the admin panel, etc. so I'm not noticing any other problems or errors.

I've attached the file that is on my server.


-----------------------------------
Artie
Mon 22 Jan, 2007 23:00

Re: Problem With Personal Galleries
-----------------------------------
This file is from an older version...... you should remove all the album files and copy over the album files from FAP 1.4.0a


And .....

[code linenumbers=false]## Upgrading from Smartor Album or older FAP or combination of Smartor Album and some Album Mods
## =======================================
## 
## If you are upgrading from older versions of Smartor Album or FAP, you should first uninstall
## the modifications listed in the installation files of those mods, and then apply the ones listed here.
## There is no need to remove the SQL part, since you can use "fap_install.php" to upgrade from any version.
## Just remember that if you are upgrading from older Album version, you may need to run even the
## Personal Galleries migration step from "fap_install.php", just after having installed FAP.
## [/code]


-----------------------------------
GeekyGirl
Sat 27 Jan, 2007 21:04

Re: Problem With Personal Galleries
-----------------------------------
I did a brand new install of the FAP 1.4.0a files and updated the MySQL database.  I lost the images I had uploaded but no big deal to readd them.

The personal galleries are working now!  Thanks for all your help!!  :mrblue:  :mrorange:  :mrviolet: 

GG


-----------------------------------
Artie
Sat 27 Jan, 2007 23:00

Re: Problem With Personal Galleries
-----------------------------------
You are welcome. Happy to hear you have things in order now. :up:


