OpenPublish 1.7 -> 2.0 Update instructions.

Events happening in the community are now at Drupal community events on www.drupal.org.
irakli's picture

As promised: http://openpublishapp.com/download/op-1dot7-2dot0-update-instructions

Please keep in mind that 1.7 -> 2.0 is a major version update and the update process will be somewhat rocky.

Comments

Thanks!

stattler's picture

The upgrade was really rocky, but finally I've made it.
The only warming that is bothering me is
warning: Invalid argument supplied for foreach() in /sites/all/modules/topichubs/topichubs.module on line 165.

The block is

  $plugins = topichubs_discover_plugins();
  foreach ($plugins as $type => $definition) { // line 165 //
    $themes["topichubs_{$type}"] = array(
                  'pattern' => "topichubs_{$type}__",
                  'arguments' => array('topichub' => NULL, 'items' => array()),
                  'path' => $definition['theme path'],
                  'template' => "topichubs-{$type}",
    );
  }

where line 165 is marked.

Are you still getting it once

irakli's picture

Are you still getting it once the update is complete?

.............................................
http://twitter.com/inadarei

Yes, I get this error

stattler's picture

Yes, I get this error whenever I clear cache. Visitor's can't see it though. I see it when I am logged in. Sometimes multiple of the same error. For example

    * warning: Invalid argument supplied for foreach() in sites/all/modules/topichubs/topichubs.module on line 165.
    * warning: Invalid argument supplied for foreach() in sites/all/modules/topichubs/topichubs.module on line 165.

I had a topichub which I deleted and then tried to create a new one via hot-topic list. This gave me another error

Topic Hub Article Topic Hub has been created.
warning: Invalid argument supplied for foreach() in /sites/all/modules/topichubs/topichubs.module on line 340.

The newly created topic-hub has no content in it (although it should, as the topic hub is "Articles")

When I click on "configure" link of that topic hub I get the following errors:

    * warning: Invalid argument supplied for foreach() in /sites/all/modules/topichubs/topichubs.module on line 612.
    * warning: implode() [function.implode]: Argument must be an array in /sites/all/modules/topichubs/topichubs.module on line 751.

And i assume the "old"

irakli's picture

And i assume the "old" TopicHub was working fine / had content?

thx

.............................................
http://twitter.com/inadarei

@irakli I am not sure, but

stattler's picture

@irakli

I am not sure, but probably there was one topic hub which I never used (the corresponding blocks were disabled). I do not intend to use it either. If I can get rid of that error, that would be great. I don't mind even if it is there, but I guess it might cause problem in future upgrades for my site.

Disabling topic-hub is not a possibility as it is connected to op_defaults, right?

Is there a way to reinstall the topic-hubs module afresh (including DB tables?)

Thanks very much.

Let me look into this and get

irakli's picture

Let me look into this and get back to you.

Thanks for reporting.

.............................................
http://twitter.com/inadarei

@stattler, sorry for the

irakli's picture

@stattler,

sorry for the delay in getting back to you. I committed some changes to CVS. Any chance you could grab updated .module file from: http://drupalcode.org/viewvc/drupal/contributions/modules/topichubs/topi... and replace the one you have now with it, please?

Thank you!

.............................................
http://twitter.com/inadarei

Moved the old one and

stattler's picture

Moved the old one and downloaded the new topichubs.module file.

But after that I cannot update the DB. When tried, I got the following error message:

Fatal error: Call to undefined function topichubs_path_args_build_menu() in /sites/all/modules/topichubs/topichubs.module on line 277

However, site is running okay, without showing me any topichubs related error. I could not also clear cache (which is probably something to do with my php memory limit or others, I will check that later on and get back to you).

In Features Cannot Revert to Default Articles

msidibe03's picture

Hi

I did the update as mentioned in the instructions and all went fine except when I try to revert to default Articles in Features, it says it was done, but always shows Overridden.

Also I was having a little problem before, where the articles pages do not show the right side content. The article itself takes the whole width of the page.

Thanks in advance

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: