Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Moving Blog Breaks Tubepress


  • Please log in to reply
4 replies to this topic

#1 Joshua Eichorn

Joshua Eichorn

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 23 January 2014 - 01:05 PM

This has been a consistent problem for us at Pagely as we have been migrating blogs to a new setup.  Anytime I move a site, tubepress fatals trying to calling a method on a non object.

 

The issue seems to be that the finder can't find the storageManger

 

src/main/php/add-ons/core/classes/tubepress/addons/core/impl/listeners/boot/OptionsStorageInitListener.php

$storageManager = tubepress_impl_patterns_sl_ServiceLocator::getOptionStorageManager();
 
is returning null
 
The same thing happens in 
src/main/php/classes/tubepress/impl/context/MemoryExecutionContext.php
 
There seems to be some sort of cache for the finder, but I can't figure out where its storage to clear things out.  I've bypassed it in the pass by hacking up tubepress_impl_patterns_sl_ServiceLocator, but managed to lose my notes and I don't remember what I did.
 
 
Any feedback would be appreciated.
 
-josh 


#2 Joshua Eichorn

Joshua Eichorn

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 23 January 2014 - 01:34 PM

Dug into the error a bit more, 

 

I've traced it to

src/main/php/classes/tubepress/impl/ioc/IconicContainer.php

get method

 

The delegate doesn't know about tubepress_spi_options_StorageManager

 

seems like it would be more reasonable to throw a runtime exception here instead of returning null. That things would at least blow up in a debuggable way, instead of down the chain at a caller who always excepts the service provider to return an instance.



#3 Joshua Eichorn

Joshua Eichorn

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 23 January 2014 - 04:47 PM

So it seems it was a bad rule in the rsync that was keeping the wordpress plugin directory from being copied.  The storage manager is provided by the wordpress plugin.  In any case, my comment above about throwing the exception on trying to get the tubepress_spi_options_StorageManager service back still holds, would have made this much easier to debug.



#4 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 24 January 2014 - 12:18 AM

Josh,

 

I have notified our Lead developer about this.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 28 January 2014 - 01:52 PM

Thanks for your feedback, and I apologize that we caused headaches for you. So that this doesn't slip through the cracks, I've filed an issue on GitHub. Looking forward to implementing the fix.

 

If you have any other questions or feedback, please send it our way. Thanks!