Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#76 Re: CE4 Publisher » Unable to change album set slug » 2015-02-14 09:57:42

Ben,

The answer to the question:

When you say "Lr-edited "3-Europe and Africa", is this editing the same Album Set that is currently at 4a-Europe-and-Africa?  So does that mean you edited the album set without changing the slug, which worked, and then attempted to change the slug, which didn't work?

is "yes" -- I changed that album set's name to "3-Europe and Africa" but not the slug.

I do have a gmail account (redacted & put in Private Message) so that should work. I can't do it now. Should we pick a time tomorrow? You name it. I am PST (Oregon).

#77 Re: CE4 Publisher » Unable to change album set slug » 2015-02-14 06:33:39

Ummm ... I appear  to have been wrong about the " album set tree renders OK" -- I don't know what sub-album  I tried but now all that I try aren't rendering (i.e., pages render without any thumbnail contents, and clicking on a thumbnail  results in spinning "hourglass".

So I tried editing the  "4a-Europe-and-Africa" album set again in Lr -- to see if that fixed like it did before ... it did. The first edit gave the same warning as in my previous post, the 2nd edit fixed things.

#78 Re: CE4 Publisher » Unable to change album set slug » 2015-02-14 02:31:50

Thanks, Ben -- as suggested here's what I did and the results:

  • cleared ttg.log file

  • Lr-edited "3-Europe and Africa"

  • made trivial change to album set's description

  • committed the change ... no error experienced

  • so next I tried changing slug from "4a-Europe-and-Africa" to "3-Europe-and-Africa" ... received this warning: ttgError20150213_1.JPG

  • clicked OK and went to look at website's page ... directory name wasn't changed; that album set tree renders OK

  • the ttg.log for all of the above is at http://samcos.com/downloads/ttg20150213_1.log

so -- still can't change the slug BUT at least the album set tree's rendering doesn't get broken.
back to you, Ben!

#79 CE4 Publisher » Unable to change album set slug » 2015-02-13 08:20:46

rsamco
Replies: 8

I attempted to change the slug of the  album set http://rick.samcos.com/galleries/j-2013 … nd-Africa/ from "4a-Europe-and-Africa" to "3-Europe-and-Africa" and experienced the publisher error: ttgError20150212.JPG
I looked at the autoindex.xml file and can't see anything funny in it. So I then compared the /galleries/ directory structure on the server with a Lr "Output Publisher Structure" dump (produced using the Lr plugin & analyzed with Ben's online tool) and they seem to totally agree. I even compared the "structure node IDs" shown in the publisher structure dump with the node IDs in directory's gallery.xml files -- again total agreement for all the ones in the neighborhood of 4a-Europe-and-Africa. So I don't know why I can't change that album set's slug.

After this error all the thumbnails and Photos of all the album sets/albums contained in the 4a-Europe-and-Africa album set are not able to be displayed. But everything seems to get fixed  if I "touch" the 4a-Europe-and-Africa album set with two trivial Lr "edit album set" (the first produces an error, the 2nd seems to succeed).

So why can't I change the slug? And I am concerned that something is broken in my publisher data structures. For example could something deeper in the 4a-Europe-and-Africa album set tree be screwed up?

My online Publisher Structure xml dump file is "galleries_20150212140633.xml" and here's a link (http://samcos.com/downloads/20150212_ttg.log) to the Lr ttg_log file showing a trace for the initial renaming error and the two subsequent "touches" that get things back to working. I will also private message you, Ben, with some FTP login credentials so you can fully inspect/fix what's out there if need be. TIA!

#80 Re: CE4 Auto Index » Padlock symbol on non-protected album set » 2015-02-12 04:03:22

Changing it to another, temp template and then back worked -- Thanks, Rod.

#81 CE4 Auto Index » Padlock symbol on non-protected album set » 2015-02-12 02:00:05

rsamco
Replies: 2

After converting a large album set/album tree from CE3 to CE4 and then moving that tree to another domain, I have an album set now displaying a padlock/lock symbol on its thumbnail (see http://rick.samcos.com/galleries/o-2008/, "Southern Oregon", 2nd thumbnail from end). Performing an Edit Album Set on its shows that it is not password protected. FTP inspecting directories on the server shows no obvious differences from other album sets (e.g., no funny file/directory rights settings, no .htaccess files). I should also say, that album set seems freely accessible (i.e., no login required). What gives?

#82 Re: CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-11 10:52:40

Success!

1) I used your tool, Ben, and the server's /galleries/ file structure matched the Lr structure dump. So I continued with my promotion/move of the yearly album sets up a level in the album set/album tree. As happened earlier, I'd periodically get a publisher server error resulting in Lr being out of sync with a directory that was moved (but Lr's structure wasn't updated). But I could always FTP the directory back down a level and perform a couple of Lr "edit album set" to get it sync'd up again. There was one directory that I just couldn't move up, so I created a new album set at the root destination, then successfully moved the sub album sets/albums up into the new set, and finally deleted the problematical source album set. I didn't figure out why this occurred (I did another structure dump and everything looked OK).

2) Found the phplugins and custom.css problem that originally started this thread -- If I commented out the GET FUNCTIONS FROM WORDPRESS & SITE-WIDE NAVIGATION FROM WORDPRESS code in phplugins.php (see http://ce4.theturninggate.net/docs/doku.php?id=ce4_102) then every works fine. Again, this "crash" only occurs on my /galleries/ and /search/ pages (i.e., non-WordPress pages) and the error  message (see opening post in this thread) looks to me like WordPress widgets are trying to be called. Why would WP widgets be called on these non-WP pages? Did a WordPress sidecar template somehow get assigned to my publisher generated gallery and search pages? Anyway, I am temporarily working around this problem by doing site-wide navigation in a different way.

Thanks for your help, Ben & Rod!

#84 Re: CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-11 07:57:59

Thanks, Ben! What do you mean by "page I messaged you" -- was this link sent by email? Or should I be looking somewhere else? In any case, I haven't seen anything yet with the necessary tool's link! (& I've checked my spam/junk email folders).

#85 Re: CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-11 03:54:00

Thanks, Ben.  That's exactly what I thought, and what I am seeing, regarding the CE3->CE4 migration. I assume that I can safely delete the *_ce3.* migration files at some point, right?

To answer your question: I did change the structure of albums and album sets after migration, BUT only from within Lr. I "pruned" out some no longer wanted albums/album sets -- deleting each from within Lr, choosing to leave it published on the server, and then deleting that tree manually through FTP.

Here's where I am now: I completed the complete "touching" of all albums/album sets within /galleries/ (by manual using Lr to edit each one). I have also completely republished the entire /galleries/ tree. And, after all that, everything looked OK in (rick.samcos.com/galleries/)-- I could browse the album/album set tree without problem. So I think that everything has been migrated OK -- Yay! I still need to determine why phplugins isn't working, but first ...

<NOTE: I made a backup of both Lr's catalog and the server's complete website tree at this point>

The next step is to get rid of a no-longer-needed level within /galleries/. To explain, here's my /galleries/ structure at this point:

/galleries/
   /Rick/
        /a-Favorites (an album)
        /i-2014/
        /j-2013/
        /k-2012/
        /l-2011/
           :
        /t-2003/

and I want to get rid of /Rick/ by promoting all if its yearly albums/album sets up a level -- so that they are residing directly under /galleries/. Here I ran into a problem which I seem to have rectified. But I want to make sure before I proceed any further.

I successfully moved /i-2014/ & /j-2013/ up under /galleries/ by just drag&dropping within Lr. But I received a publisher/server error when moving the next album set /k-2012/, and I couldn't do anything with that album set within Lr thereafter. Through FTP I saw that the directory had moved up a level, but Lr still showed it within /Rick/. So I manually moved it back down to its original location using FTP, hoping that that might fix the problem. At first it didn't seem to work -- I initially experienced a path not found publisher error when Lr edited that album set. But then I tried editing it again and everything then seemed to be OK?!?!?! But I am really uncomfortable proceeding any further with these moves for fear that the /galleries/ structure/database is getting messed up. And I don't want to try restoring my backups either for fear that the publisher's /galleries/ database on the server won't be restored since I don't know where it resides.

So, I think that I'll leave the /galleries/ tree as it is until I hear back that I can either (a) safely proceed with promoting the yearly album sets OR (b) restore everything to its earlier state (including the /galleries/ database, wherever it resides). (BTW, I have returned the two moved yearly album sets back down under /Rick/.)

Whew! Sorry for these long winded descriptions, but I am trying to be extremely careful so that I don't loose A LOT of work. TIA

#86 Re: CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-10 01:10:27

Thanks, Ben. I woke up this morning with two insights:

a) I had forgotten about the Publisher database -- that is, I hadn't thought to copied it over to the new website with the converted /galleries/. So, no wonder that things didn't "just work" after the conversion/migration!

b) I had forgotten that I had already learned to "touch" each and every album set/album in the copied-over /galleries/ before republishing a portion. That is, within Lr I had to perform an "edit album set" or "edit album" on each such in the migrated /galleries/ before I could republish it in the new website. That is, I simply had to open an edit dialog on each album set/album and save it. I'm guessing that by doing this that I was rebuilding/resync'ing the Publisher database between Lr and the server. Of course it is a PIA to have to walk the /galleries/ tree doing this "touching", but still a hell of a lot less work than having to regenerate each album set/album from scratch. Anyway, I just successfully did this "touching" on another big portion of the migrated /galleries/ and I am in the middle of a successful republishing of it right now.

So, at this point, it seems that we have two options:

1) restore everything to pre-migration (both server- and Lr-sides). I have Lr and server backups to do this, but it is going to take me into tomorrow to perform that work (FTP'ing-extracting-FTP'ing from a very large server backup). And then I'm still going to need some guidance in how to correctly move the newly converted /galleries/ to the new website. For example, I'll need instructions on how to move the publisher database and anything else connected. And, in the end, I may still have the same issue with my custom phplugins not working.

OR

2) disable phplugins and continue to "touch" and republish the migrated /galleries/.  Then start with an empty phplugins, see if that can be "linked in" without error. If it doesn't work, maybe you & Rod can help me get things working with that "empty" phplugins/custom.css? I think that I'll try this right now and see what happens...

Just replaced my phplugins with a new empty one from phplugins_sample -- converted, moved & republished album sets don't crash now. But they don't show a red background either. Don't have time to diagnose right now ... stay tuned. But it's looking to me that option #2 is going to be the best way forward ...

#87 Re: CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-09 17:10:34

After leaving all this for a few hours, I came back and now find that I can't republish any additional moved album sets! Whereas I successfully republished a couple big branches of the /galleries/ tree a few hours ago, now I can't publish any more. The error I experience is:
http://www.samcos.com/downloads/CE4_republish_error.JPG
So it look like the Lr publisher database really is screwed up now. In the morning I am going to restore Lr and my CE3 Family website to their states before the conversion so we try all this again.

So, the question is: how can one move a large /galleries/ from one functioning website to another? I guess alternatively: how can one replicate/copy album sets between separate Lr TTG_CE publishing services?

PS I noticed that there is a Lr Plugin called "TTG CE4 Publisher>>Output Publisher Structure" -- for curiosity's sake I ran it and received a completion message. But I can't find where the output was written.

#88 Re: CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-09 16:45:26

Sorry that it's so complicated, Ben ... To first give you some more context on why I am doing this -- I want to split my CE3 family website (samcos.com) into two websites: a Family website and a second Photography website containing only my personal stuff (under a new subdomain: rick.samcos.com). By far the largest part of the CE3 family website is its /galleries/ tree and the vast majority of it is my photography work which needs to go to the new photography website. In other words, I wanted to extract out my photography work out of the Family website's /galleries/ and put it into a new website. And I REALLY didn't/don't want to have to regenerate that part of /galleries/ structure in the new site.

With that context, let me now explicitly answer your 2 questions:

1) Yes, I performed the Publisher CE3->CE4 conversion at samcos.com/galleries/. I then FTP'd the result to my new, completely functioning CE4 website (i.e., to rick.samcos.com/galleries/); and then changed the same, converted Lr Publishing Service's url target to the new site. That is, I retargeted the exact same Lr Publishing Service that was the target of the CE3->CE4 conversion, to the new URL (and authenticated the Publisher API key). I then started republishing -- thinking that that would fix any broken connections. But, no, something remains broken.

2) No, I am not trying to use my CE3 version of phplugins at the new location. Rather, I have a completely fresh CE4 installation at the new domain, completely built from the ground up. That is, I constructed new CE4 templates (gallery, autoindex, and WordPress) and new custom.css/phplugins.php to give me a totally new CE4 website. And it was ALL working as I wanted using a smallish, dummy /galleries/ tree. That is, I had a completely new WordPress website with CE4 Templates and custom custom.css/phplugins.php  working/looking exactly as I wanted, except I didn't have my huge /galleries/ tree. That tree is just too onerous to regenerate, so I emptied the new site's dummy /galleries/ and copied in the CE3->CE4 converted tree from the original site. And I republished a portion of it and tried referencing it, and experienced the reported error.

BUT I don't get any errors if I remove my phplugins.php file! So the broken "Publisher Connections" only seem to be around that. Album sets/albums in the moved tree work fine (the ones that I  have republished). And the WordPress portion of the site is working fine. That is, everything except /galleries/ and /search/ are working, including use of the CE4 phplugins customization (e.g., dynamic mastheads). The /galleries/ & /search/ just can't seem to "hook into" the phplugins customizations, I'm thinking.

If what I did was a no-no, please tell me how I can replicate a /galleries/ between two targets. TIA!

#89 CE4 Publisher » phplugins broken after conversion from CE3 to CE4 » 2015-02-09 11:58:58

rsamco
Replies: 12

After performing a CE3->CE4 /galleries/ conversion and then moving the resulting /galleries/ to a new CE4 website, the moved album sets and albums generate the following error:

include_once(/addtoany.widget.php): failed to open stream: No such file or directory|#0 /home/rsamco1/public_html/_sites/rick/wp-content/plugins/add-to-any/add-to-any.php(1070): ErrorHandler::handleError(2, 'include_once(/a...', '/home/rsamco1/p...', 1070, Array) #1 /home/rsamco1/public_html/_sites/rick/wp-content/plugins/add-to-any/add-to-any.php(1070): A2A_SHARE_SAVE_widget_init() #2 [internal function]: A2A_SHARE_SAVE_widget_init('') #3 /home/rsamco1/public_html/_sites/rick/wp-includes/plugin.php(496): call_user_func_array('A2A_SHARE_SAVE_...', Array) #4 /home/rsamco1/public_html/_sites/rick/wp-includes/default-widgets.php(1420): do_action('widgets_init') #5 [internal function]: wp_widgets_init('') #6 /home/rsamco1/public_html/_sites/rick/wp-includes/plugin.php(496): call_user_func_array('wp_widgets_init', Array) #7 /home/rsamco1/public_html/_sites/rick/wp-settings.php(353): do_action('init') #8 /home/rsamco1/public_html/_sites/rick/wp-config.php(92): require_once('/home/rsamco1/p...') #9 /home/rsamco1/public_html/_sites/rick/wp-load.php(29): require_once('/home/rsamco1/p...') #10 /home/rsamco1/public_html/_sites/rick/phplugins/phplugins.php(23): require_once('/home/rsamco1/p...') #11 /home/rsamco1/public_html/_sites/rick/ttg-be/templates/autoindex/TTG_CEx_AutoIndex/template_index.php(19): require_once('/home/rsamco1/p...') #12 /home/rsamco1/public_html/_sites/rick/ttg-be/publisher/application/controllers/GalleryController.php(181): include_once('/home/rsamco1/p...') #13 [internal function]: GalleryController->autoindex('', 'index', '') #14 /home/rsamco1/public_html/_sites/rick/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array) #15 /home/rsamco1/public_html/_sites/rick/ttg-be/framework/Framework.php(124): Controller->dispatch(Array) #16 /home/rsamco1/public_html/_sites/rick/galleries/Rick/i-2014/c-S-Utah-N-Arizona/lib.php(48): Framework->route() #17 /home/rsamco1/public_html/_sites/rick/galleries/Rick/i-2014/c-S-Utah-N-Arizona/index.php(4): route(Array) #18 {main}|URL: /galleries/Rick/i-2014/c-S-Utah-N-Arizona/index.php

Here's the broken website's /galleries/ url: http://rick.samcos.com/galleries & this subtree within it has been completely republished: http://rick.samcos.com/galleries/Rick/i-2014/ (the original source CE3 website, now with an empty /galleries/, is at samcos.com).

If I temporarily remove /phplugsins/phplugins.php from the server then the album sets/albums display correctly (albeit with none of my careful custom formatting). So IMO something is broken in the linkage between the site's custom php/css and these converted & moved /galleries/. I have checked the paths shown in the error message and they are all correct (the referenced files are at those locations). Here's what /phplugins/path.php returns: "/home/rsamco1/public_html/_sites/rick/phplugins".

The converted /galleries/ were moved into a target /galleries/ directory that just had a completely working, Lr publisher-managed /galleries/ tree. So the CE4 templates being used have the correct phplugins path (and I later reinstalled them just to be safe). The functioning target/destination /galleries/ tree had been deleted/emptied by deleting the album sets/albums using Lr. Nothing was touched anywhere else before the move (i.e., not in /phplugins/ or any WordPress configuration). The album sets/albums that are not working (see above) were republished by Lr after the move  (it's a huge /galleries/ tree so it will be day or more before I am able to republish it all). I have made one change in WordPress after experiencing this problem -- I activated the CE4 WordPress template produced by Lr, thereby un-activating a child theme I had created (which had a single template override: loop.php).

Here is more detail on how I got to this point:

  • I carefully designed a new website UNDER A NEW DOMAIN and got WordPress, AutoIndex, & Gallery Templates, and custom css/php where I wanted them. Website completely functioned with a dummy /galleries/ tree. The CE4 AutoIndex & Gallery Templates were named exactly the same as used on my CE3 website.

  • I went to my CE3 website and installed CE4 ttg-be and publisher; installed the newly completed CE4 AutoIndex & Gallery templates from the new website into /ttg-be/templates/; set up a new CE4 Lr Publish Service containing no albums/album sets; made sure that my CE3 galleries were completely published; and ran the CE3->CE4 conversion plugin. It finished with a successful summary message.

  • I edited the new Lr CE4 Publish Service (the target of the conversion) to have a new API url and verified its key. I did NOT have it republish the tree when asked.

  • I copied the resulting converted /galleries/ tree to just-emptied /galleries/ tree in the new website (I confirmed it was first empty using FTP).

  • I published the /galleries/'s "Rick/i-2014" sub tree and experienced the above error when invoking any of its album sets/albums.

I'm stumped...

#91 CE4 Theme for WordPress » Where is php code for rendering post meta-date? » 2015-02-09 05:12:04

rsamco
Replies: 2

This is my first foray into trying to write custom php within a WordPress theme so please bear with me on this basic question ...

I wish to modify the post-meta info shown at the bottom of a blog post in WordPress -- from the CE4 default of "<author><date>" back to what we had in CE3: "Posted on <date>". I have searched high & low trying to find the php code that writes the html but for the life of me can't find it. Here's the html generated:
post-meta-html.JPG

My understanding is that, once I find it, I can copy the relevant php function into my /phplugins/phplugins.php file, with necessary modifications ... right? 

Or maybe there is another way to "skin this cat"?  TIA!

#92 Re: CE4 Theme for WordPress » Site-wide mastheads? » 2015-02-06 03:59:07

Ummmm, you're right, Rod. Right after I reported this "problem" I found that some of my dynamic masthead display size breakpoints in my custom.css file weren't working within Publisher managed albums/sets, so I reverted back to an earlier version. That fixed the size breakpoint problems, and must have fixed WordPress's use of that custom.css file as well. I now suspect that I had a syntax error in my custom.css which caused WordPress to abort its interpretation and fall back to the dynamic masthead imaging that I had set up within WP itself.

Bottomline, sorry to have bothered you with this ... and onward!

#93 Re: CE4 Theme for WordPress » Site-wide mastheads? » 2015-02-05 09:35:38

http://rick.samcos.com

Rod, you no doubt know this, but dynamic mastheads is implemented in custom.css -- so maybe I have to put it somewhere other than /phplugins/css/custom.css for WordPress to see?

#94 Re: CE4 Theme for WordPress » Site-wide mastheads? » 2015-02-05 09:02:26

Oh, you probably mean within Lr -- yes, in the Theme for WordPress template, phplugins is enabled and path is same as used in autoindex and gallery (which is working for those templates).

#95 Re: CE4 Theme for WordPress » Site-wide mastheads? » 2015-02-05 08:44:33

Ummm, no -- I didn't see that in the WordPress Theme documentation nor did I run across it while configuring WordPress. I still can't find it; e.g., it's not in the WordPress' Theme options.

BTW, the 960 pixel width masthead default width is in the most recent CE4 documentation: http://ce4.theturninggate.net/docs/doku … me_options .

#96 Re: CE4 Theme for WordPress » Site-wide mastheads? » 2015-02-05 06:55:32

Thanks, Rod. Actually I already had dynamic mastheads fully working in autoindex, gallery & search. But when I then "turned on" WordPress its pages/blog didn't inherit any of it. So I guess that my question really is: how do I get WordPress to use my CE4 dynamic mastheads?

#97 CE4 Theme for WordPress » Site-wide mastheads? » 2015-02-05 06:14:51

rsamco
Replies: 9

How can I have the masthead(s) set up in WordPress be used site-wide, like is done for navigation/menus (with custom phplugins)? To wit, I'd like to have the masthead graphic set up in WordPress also apply to non-WordPress managed pages like /galleries/ and /search/ (managed by Publisher). I really don't want to go to the pain of having to minutely manage my masthead size in 2 (or more) places so that there aren't subtle differences when different website pages are displayed.

Also, I am finding that my default WordPress masthead graphic (as set up in WP's theme's settings) needs to be 1100 pixels wide to fully fill the width of my WordPress site on desktops (non-retina). This is contrary to Matt's advice of not having the width be larger than 960. What gives?

TIA!

#98 Re: CE4 Publisher » Publisher managed /galleries/ directory? » 2015-02-03 11:25:55

Of course, the AutoIndex-created /galleries/ directory doesn't show breadcrumbs. This is fine with me, but I wanted to point that out to others who may read this thread. I suppose that custom phplugins can be used to show them if desired (e.g., see http://danielleu.com/blog/2014/08/breadcrumbs-ce4/ ).

#99 Re: CE4 Publisher » Publisher managed /galleries/ directory? » 2015-02-03 11:20:39

That did it, Rod -- totally makes sense that I need to export a full AutoIndex directory (outside of Publisher) rather than use a Publisher-created directory. Thanks!

#100 CE4 Publisher » Publisher managed /galleries/ directory? » 2015-02-03 10:18:08

rsamco
Replies: 4

My root CE4 /galleries/ directory will consist of a number of album sets and albums which I wish to manage through Publisher. But Publisher doesn't seem to publish the contents of its highest level "container" to the server. I thought that I could just create a Publisher album set which had "Features>Hide from AutoIndex" enabled and FTP it to /galleries/. And this works great except that root album set's breadcrumbs shows where that album set was created, not where it currently resides. For example, if I created it as a highest level album set then its breadcrumb is "Home » Galleries » Galleries" (sandbox website is http://rick.samcos.com/galleries/). It seems to be getting this indirectly though its gallery.xml file.  I thought maybe I could delete the gallery.xml file and instead put in an autoindex.xml but no dice. So I'm stumped.

Eventually I'm going to have all this contained within WordPress (using the CE4 WordPress plugin) so if the answer is to configure something there, then great! But it sure seems like that there should be a way to do this without WordPress (or Pages). TIA!

Board footer

Powered by FluxBB