help needed urgent

Permalink
My site is displaying:

Fatal error: Call to a member function getBlockTypeHandle() on a non-object in /home/ebmas/public_html/updates/concrete5.6.1.2_updater/concrete/core/libraries/block_view_template.php on line 41

What do I need to do to fix this?

Anyone please help!

View Replies:
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Try to rerun the update process.
ebmasuk replied on at Permalink Reply
2 updates where available. Actually it said download and install for some reason. I updated the Google+ addon and got this on the website:


Warning: require_once(/home/ebmas/public_html/packages/google_plus_one/blocks/google_plus_one/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home/ebmas/public_html/updates/concrete5.6.1.2_updater/concrete/core/libraries/loader.php on line 214

Fatal error: require_once() [function.require]: Failed opening required '/home/ebmas/public_html/packages/google_plus_one/blocks/google_plus_one/controller.php' (include_path='/home/ebmas/public_html/libraries/3rdparty:/home/ebmas/public_html/updates/concrete5.6.1.2_updater/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/ebmas/public_html/updates/concrete5.6.1.2_updater/concrete/core/libraries/loader.php on line 214

In the dashboard the google+ addon picture changed to C5 logo and said "An error occurred while downloading the package"

Same thing happened to the second addon.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
I'm talking about the Concrete5 update not any add-on update.

BTW just download those 2 missing package and upload it manually into the packages directory to overcome the add-on related error.

Rony
ebmasuk replied on at Permalink Reply
Ah yes I just found the concrete5 update. I'll get that updated and see if that fixes the problem.

Thankyou
ebmasuk replied on at Permalink Reply
Hi,

I managed to update the concrete5 version. But now I am getting

Fatal error: Call to a member function getBlockTypeHandle() on a non-object in /home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/core/libraries/block_view_template.php on line 41

This happens only on certain pages like the Register page.

Any ideas???
mkly replied on at Permalink Reply
mkly
Hello,
Is it possible that you copied and pasted a block to the register single page? It may be that you have lost the association with the original block it was pasted from because that block no longer exists.

Could you try creating a tools file to test this? You would need to create a file(or upload one) to the top level /tools/ directory. Name the file blockfinder.php

/tools/blockfinder.php

Place this code in it
<?php
$page = Page::getByPath('/register');
echo $page->getCollectionName() . "<br />\n";
foreach ($page->getBlocks() as $block) {
  $bc = $block->getInstance();
  echo $block->bID . "<br />\n";
  echo $bc->bOriginalID . "<br />\n";
}


Then browse to
http://www.example.com/index.php/tools/blockfinder.php


and post back the output.

Best Wishes,
Mike
ebmasuk replied on at Permalink Reply
Hi Mike,

Thanks for looking into this for me. I uploaded the file you wanted me to and the output was:

Register
44

48

1553
914
1554
633
1555

1557

1558

1559

Hope that makes sence to you! lol

The only block I can think I might have added where the mega menu & an image in the "headerimage" content area.

Looking forward to your reply.
ebmasuk replied on at Permalink Reply
Hi Mike,

Just to update you I'm am still getting the same error, but seems to only be when I logged in. If that gives you any other ideas!

Thank you in advance
ebmasuk replied on at Permalink Reply
Hi Mike sorry to blast you with this, I have noticed another error on other pages that use the "Pro News" Package.

The error is:

Fatal error: Call to a member function getInstance() on a non-object in /home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/core/controllers/blocks/core_scrapbook_display.php on line 32

This happens when I'm both logged in and out.

I contact the developer and he explained its not the package making this error.
mkly replied on at Permalink Reply
mkly
Unfortunately, I'm not going to be able to spend the time to walk you through fixing and adjusting every aspect of your site. I'll try to give you a bit of information that can hopefully get you going in the correct direction.

What is occurring is that you have references to blocks that no longer exist. These are blocks that were pasted from the clipboard but do not seem to exist anymore. You'll need to delete those blocks.

I would definitely create backups before continuing beyond this point.

Go to the dashboard and go to the stacks page. From there look for that content area that you added the two blocks to. My best guess here would be to completely delete that area and recreate it. Hopefully that will clear out those blocks. You will need to readd the blocks afterward, so make a note of what blocks were in there.

Best Wishes,
Mike
ebmasuk replied on at Permalink Reply
Hi Mikey,

Sorry I was just trying to give you more info on the problem, but I did what you said and it has seem to work!

Thanks for the advice greatly appriecated!
designserve replied on at Permalink Reply
designserve
Hi, I've had some issues with blocks lately and have used the code posted here. I've managed to gradually reduce the number of issues until I'm down to one or two. My output is:

Register
1227

12243

Is there a way I can find out which pages these blocks are on? or some way to edit them?

Many thanks!
Mike
ebmasuk replied on at Permalink Reply
I look at the single page login & registration and got my theme displayed but with this error instead


Warning: include(/home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/single_pages/dashboard/users/registration.php) [function.include]: failed to open stream: No such file or directory in /home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/core/libraries/view.php on line 945

Warning: include() [function.include]: Failed opening '/home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/single_pages/dashboard/users/registration.php' for inclusion (include_path='/home/ebmas/public_html/libraries/3rdparty:/home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/ebmas/public_html/updates/concrete5.6.2.1_updater/concrete/core/libraries/view.php on line 945 - See more at:http://ebmas.co.uk/index.php?cID=35#sthash.KupbO9CE.dpuf...

Any advice would be great!