https://www.icyphoenix.com/viewtopic.php?f=35&t=9506
-----------------------------------
AndyGpy
Mon 14 Dec, 2015 16:19
Album Plugin Problems
-----------------------------------
Installed the Album Plugin, once added to a CMS page and opened up webpage i get this error, i also modded line 51 as before it use to say ALBUM_MOD_PATHalbum_common.php without a "/"
PHP Notice: in file /blocks/album.php on line 51: include_once(ALBUM_MOD_PATH/album_common.php): failed to open stream: No such file or directory
I have searched but cannot find Album_common.php. I am using -- 2.0.17.103
Can some one advise please
-----------------------------------
Mighty Gorgon
Mon 14 Dec, 2015 22:42
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
Hi Andy,
The old block album.php is not compatible with the new version, you should remove all old blocks and use only the new ones.
For the album as plugin the correct block is called plugin_album.php.
Let me know if you manage to get it work properly.
-----------------------------------
AndyGpy
Thu 17 Dec, 2015 13:39
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
It is in the Plugin, Luca.
This is the error being displayed
[Icy Phoenix Debug] PHP Notice: in file /[b]blocks/plugin_album.php on line 57[/b]: include_once(ALBUM_MOD_PATHalbum_common.php): failed to open stream: No such file or directory
-----------------------------------
mort
Fri 18 Dec, 2015 11:48
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
[strike]It's got more problems than that I'm afraid. :(
[b]Plugins/Photo Album/Configuration[/b]
[i]Template->make_filename(): Error - template file not found: ../common/acp/album_config_settings_body.tpl[/i]
[b]Copy:[/b] album_config_settings_body.tpl
[b]From:[/b] plugins/album/adm/templates/album_config_settings_body.tpl
[b]To:[/b] templates/common/acp/album_config_settings_body.tpl
[i]And that's just one problem half-patched without going any further..[/i] :mryellow:[/strike]
-----------------------------------
AndyGpy
Fri 18 Dec, 2015 12:01
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
Mort , i had same issue when i moved from 1.53 to 2.o to 2.2, i like you patched that file but still had the issues i described, so i decided to do a fresh set up of 2.2..... see post
[url=http://www.icyphoenix.com/viewtopic.php?f=10&t=9504]http://www.icyphoenix.com/viewtopic.php?f=10&t=9504http://www.icyphoenix.com/viewtopic.php?f=10&t=9504
-----------------------------------
mort
Fri 18 Dec, 2015 12:29
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
I don't need to read through anything other than what happens from this point in time because I have the latest from GIT and it's got errors in the album plugin. what's more I don't want to spend a lot of time so lets start somewhere here..
First I've patched the block file with the right path. :mryellow: :)
[b]Next:[/b]
[b][i]Ignore my previous post...[/i][/b] :censored:
Plugins/Photo Album/Configuration
Template->make_filename(): Error - template file not found: ../common/acp/album_config_settings_body.tpl
Open:
plugins/album/adm/templates/admin_album_config_settings_body.tpl
Find:
'template_file' => ADM_TPL . 'album_config_settings_body.tpl'
Replace with:
'template_file' => ALBUM_ADM_TPL_PATH . 'album_config_settings_body.tpl'
These are all of the affected files where no doubt most of the ADM_TPL will have to be changed to ALBUM_ADM_TPL_PATH
[b]BUT![/b] some of them may need to be not changed as they could be using "common" file that exist in the root/acp/*.* though I doubt it and it's too risky just to change them willy-nilly! (although I'm thinking about it!)
:P
'template_file' => ADM_TPL . 'album_config_upload_body.tpl'
ADM_TPL . 'album_cat_body_debug.tpl', BUT ONLY FOR DEBUGGING PURPOSE, and send me a screenshot of it
then go back to this template file ADM_TPL . 'album_cat_body.tpl'.
'template_file' => ADM_TPL . 'album_config_clearcache_body.tpl'
// for alittle hint see the template file ADM_TPL . 'album_config_sub_body.tpl'
'template_file' => ADM_TPL . 'album_config_gd_info_body.tpl'
'template_file' => ADM_TPL . 'album_config_index_body.tpl'
'template_file' => ADM_TPL . 'album_config_personal_body.tpl'
'template_file' => ADM_TPL . 'album_config_thumb_body.tpl'
'template_file' => ADM_TPL . 'album_config_thumb_body.tpl'
'template_file' => ADM_TPL . 'album_config_upload_body.tpl'
ADM_TPL . 'album_cat_body_debug.tpl', BUT ONLY FOR DEBUGGING PURPOSE, and send me a screenshot of it
then go back to this template file ADM_TPL . 'album_cat_body.tpl'.
'template_file' => ADM_TPL . 'album_config_clearcache_body.tpl'
// for alittle hint see the template file ADM_TPL . 'album_config_sub_body.tpl'
'template_file' => ADM_TPL . 'album_config_gd_info_body.tpl'
'template_file' => ADM_TPL . 'album_config_index_body.tpl'
'template_file' => ADM_TPL . 'album_config_personal_body.tpl'
'template_file' => ADM_TPL . 'album_config_settings_body.tpl'
[size=18][b]EDIT:[/b][/size]
Ok, I swung the axe at this and changed the lot otherwise one cannot navigate the Album settings in the ACP.
[b]Go To:[/b]
plugins/album/adm/templates/
[b]
And check every file for:[/b]
ADM_TPL .
[b]And replace it with:[/b]
ALBUM_ADM_TPL_PATH .
If you do them all the same time with something like [b]Notepad++[/b] don't leave the dots off the ends else you will end up with a mess.. ;)
-----------------------------------
AndyGpy
Fri 18 Dec, 2015 13:11
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
Dont you mean
plugins/album/adm/admin_album_config_settings_body.tpl
instead of
plugins/album/adm/[strike]templates[/strike]/admin_album_config_settings_body.tpl
-----------------------------------
mort
Fri 18 Dec, 2015 13:36
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
[quote user="AndyGpy" post="60271"]Dont you mean
plugins/album/adm/admin_album_config_settings_body.tpl
instead of
plugins/album/adm/[strike]templates[/strike]/admin_album_config_settings_body.tpl[/quote]
[b]No! I mean:[/b]
Wrong.. :censored:
[strike][b][i]plugins/album/adm/templates/album_config_settings_body.tpl[/i][/b] as I posted :mryellow: [/strike]
This: Is where the .php files are.... :shock:
[b]plugins/album/adm/admin_album_config_settings.php[/b] :lol:
I'm sure you'll find it - I'm off to bed - - - G'night. :P
-----------------------------------
AndyGpy
Fri 18 Dec, 2015 13:47
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
When i open this file
plugins/album/adm/templates/album_config_settings_body.tpl
i can see no reference to ADM_TPL.
i must be getting them from wrong place then, i donwloaded from GIT Hub
full zip from -- [url=https://github.com/MightyGorgon/icy_phoenix_plugins]Link
when unzipped and Browse to Album folder i have ip_root Folder which inside i have as show
[img]http://www.icyphoenix.com/files/images/5799/mort1.jpg[/img]
i click on Plugins folder , then on album folder. then what i get is
[img]http://www.icyphoenix.com/files/images/5799/mort2.jpg[/img]
Click on adm folder gives me
[img]http://www.icyphoenix.com/files/images/5799/mort3.jpg[/img]
which is where the admin files are, if i click on Template folder as you suggest i get
[img]http://www.icyphoenix.com/files/images/5799/mort4.jpg[/img]
Am i missing something ?
i have run the changes on teh ADMIN_ files in the ADM folder which are .TPL files
Am i pulling from the right GIT location ?
Anyway now when viewing a new block i have created i get
[Icy Phoenix Debug] PHP Notice: in file /blocks/plugin_album.php on line 57: include_once(ALBUM_MOD_PATHalbum_common.php): failed to open stream: No such file or directory
[Icy Phoenix Debug] PHP Notice: in file /blocks/plugin_album.php on line 57: include_once(): Failed opening 'ALBUM_MOD_PATHalbum_common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
Fatal error: Call to undefined function album_user_access() in /home/fifebirder/public_html/Forum2/blocks/plugin_album.php on line 71
-----------------------------------
mort
Fri 18 Dec, 2015 20:52
Re: Icy Phoenix 2.2 Beta 1
-----------------------------------
Sorry Andy,
I made a real balls up - and yet I looked at that twice myself and convinced myself it was right.. Far too late at night to be doing anything I'm afraid - and I had already taken some sleeping pills. :(
You're in the right place and here's a zip I have patched so far if you want to use it.. There are still some paths that are wrong - but I'll get to them later today and post them separately so that MG can see those too. :twisted:
It would also probably be better if you did a clean install of IP and don't worry about merging DB's, files and adding it to the CMS straight away until as many errors can be taken out of it that's possible...
http://members.iinet.net.au/~cranky65/album.zip
And when you've downloaded that zip...
You can change these before you "Install" it ....
plugins/album/adm/[b]x3[/b]
admin_album_config_extended.php
admin_album_personal.php
admin_album_auth.php
[b]Find:[/b]
[code linenumbers=false] $message .= '
' . sprintf($lang['Click_return_admin_index'], '', '');[/code]
[b]Replace With:[/b]
[code linenumbers=false] $message .= '
' . sprintf($lang['Click_return_admin_index'], '', '');[/code]
plugins/album/includes/[b]x1[/b]
album_acp_functions.php
[b]Find:[/b]
[code linenumbers=false] $message = $in_message . '
' . sprintf($lang['Click_return_album_category'], '', '') . '
' . sprintf($lang['Click_return_admin_index'], '', '');
[/code]
[b]Replace With:[/b]
[code linenumbers=false] $message = $in_message . '
' . sprintf($lang['Click_return_album_category'], '', '') . '
' . sprintf($lang['Click_return_admin_index'], '', '');
[/code]
[b]Edit:[/b]
After all of this - I put the url (local - xampp) to the album in the browser - and the Album works fine - even uploaded some pictures and went through the motions of checking all the "Pages".
:mrgreen: :lol: :xmas_02:
Later I'll try creating a CMS block - But at least the rest of it seems to be working just fine.
[b]More Edits:[/b]
You can add this if you wish - which you will probably need to do anyway as I don't see it adding itself during "activation" of the Album.
templates/default/nav_quick_links.tpl
[code linenumbers=false]Find: