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: {IMG_NAV_MENU_SEP} {L_LINK_FORUM} After ADD: {IMG_NAV_MENU_SEP} {L_ALBUM} [/code] ----------------------------------- AndyGpy Sat 19 Dec, 2015 03:27 Re: Album Plugin Problems ----------------------------------- Hi Mort Thanks for that, my main problem is creating a block, you can see in my previous post at the bottm what the error is i am getting ----------------------------------- mort Sat 19 Dec, 2015 03:41 Re: Album Plugin Problems ----------------------------------- I realised that - But it was no use trying to create a CMS block when the thing is full of errors. Otherwise that only adds to the problems. As for creating the CMS block - there appears to be further obstacles in the way that need to be sorted out. But a quick look hasn't brought up any errors so far.. :mryellow: [b]Edit:[/b] Andy, the errors you are posting are not appearing for me and I've generally cleared the obstacles/errors as I come to each one - But the last error has got me beat because I don't do much with this script any more. And it's posted in another thread... Along with a message for you. http://www.icyphoenix.com/viewtopic.php?f=2&p=60279#p60279 ----------------------------------- AndyGpy Mon 21 Dec, 2015 10:31 Re: Album Plugin Problems ----------------------------------- Have managed to fix it.. @Mort You need to fix your plugin_album.php as follows Find OPEN [b]plugin_album.php[/b] FIND [codeblock]include_once(ALBUM_MOD_PATH . '/album_common.' . PHP_EXT);[/codeblock] REPLACE WITH [codeblock] include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins'][$plugin_name]['dir'] . 'common.' . PHP_EXT); include_once(ALBUM_MOD_PATH . 'album_functions.' . PHP_EXT);[/codeblock] The Block now works a treat on the home page. [img]http://www.icyphoenix.com/files/images/5799/mort_block.jpg[/img] Hope this helps ----------------------------------- mort Tue 22 Dec, 2015 03:18 Re: Album Plugin Problems ----------------------------------- Hi Andy, Glad you got that side of it sorted out. ;) But if you've followed all of the updating I've done [b][i]on-the-run[/i][/b] there's still things that are either missing or not pathed properly or not catered for. As for me - I only looked at it to see if I could help you out because there is a general [b]lack[/b] of real [i]"Qualified" [/i]help here. And it's a long time since I looked at Icy in any shape or form - - And I wont be doing any more with it because I would have to spend a[b][i] long[/i][/b] time re-learning what is where along with all the code changes - while I don't really have a use for any of it. :mryellow: BTW: Have a nice [img]http://www.icyphoenix.com/files/images/8840/header_bg2.gif[/img] ----------------------------------- mort Thu 24 Dec, 2015 09:02 Re: Album Plugin Problems ----------------------------------- [quote=Andy] Find OPEN [b]plugin_album.php[/b] FIND [codeblock]include_once(ALBUM_MOD_PATH . '/album_common.' . PHP_EXT);[/codeblock] REPLACE WITH [codeblock] include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins'][$plugin_name]['dir'] . 'common.' . PHP_EXT); include_once(ALBUM_MOD_PATH . 'album_functions.' . PHP_EXT);[/codeblock] [/quote] I've had another bit of a look ----- And that path has already been defined as such. [code linenumbers=false]define('ALBUM_PLUGIN_PATH', PLUGINS_PATH . $config['plugins']['album']['dir']);[/code] The problem is that this file doesn't exist: [code linenumbers=false]include_once(ALBUM_MOD_PATH . '/album_common.' . PHP_EXT);[/code] And I would be more inclined to only try: [code linenumbers=false] include_once(ALBUM_ROOT_PATH . '/common.' . PHP_EXT);[/code] Because common.php already includes -> [code linenumbers=false]include_once(ALBUM_ROOT_PATH . 'includes/album_functions.' . PHP_EXT);[/code] Dunno... may look further - maybe not. :?: ----------------------------------- Mighty Gorgon Sat 09 Jan, 2016 11:56 Re: Album Plugin Problems ----------------------------------- This should be the right fix: OPEN [b]blocks/plugin_album.php[/b] FIND [codeblock]include_once(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT);[/codeblock] REPLACE WITH [codeblock]include_once(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins'][$plugin_name]['dir'] . 'common.' . PHP_EXT);[/codeblock] ----------------------------------- Informpro Mon 11 Jan, 2016 16:24 Re: Album Plugin Problems ----------------------------------- Sorry, I didn't realize I let those slip... ----------------------------------- Mighty Gorgon Thu 21 Jan, 2016 17:23 Re: Album Plugin Problems ----------------------------------- Don't worry, that's not an issue... :mri: