If you get an error like:
Fatal error: Call to a member function select() on a non-object in /home/username/public_html/app/code/community/Fishpig/Wordpress/Model/Resource/Page.php on line 119
Then, check you’ve not just changed a MySQL username, without updating the fishpig configuration, or otherwise Fishpig can’t access the MySQL database for some reason. It seems to store a MySQL login in Magento config. I’ve not yet found exactly where, I’ll update this post with more once I understand more about what it’s doing.
It presented as the main Magento site throwing the following error:
exception ‘Zend_Exception’ with message ‘dbModel read resource does not implement Zend_Db_Adapter_Abstract’
Which it seems that most everyone will tell you to clear your cache to fix. You *will* need to clear your cache, probably. Just, after fixing the MySQL connection issue.
The following line is to make it easier for people googling to find this post:
Fatal error: Call to a member function select() on a non-object in /public_html/app/code/community/Fishpig/Wordpress/Model/Resource/Page.php on line 119 magento fishpig
Well, I’ve now debugged a few issues with my scripts from my last post.
(made them a bit more fault tolerant and actually take notice of $? exit statuses) .
Recap: Temperhum (USB) -> Raspberry Pi -> Xively chart, now also
RFDuino (bluetooth wireless) -> Raspberry Pi -> Xively chart
Tip: If you’re struggling with the bluetooth on linux giving rx timeout errors (check the syslog if it’s not in the console),
update the software with the following commands:
sudo apt-get update
sudo apt-get upgrade
The Rfduino has been sitting next to my usb Temperature and Humidity sensor for a few weeks collecting data.
Since it had been both collecting data for a few weeks and sending them to Xively / Pachube / Cosm, I had a quick look to see how closely the readings match.
The graphs do show correlation, thank goodness, but it looks like the RFDuino’s temperature scale isn’t right. The RFDuino is only updating the graph once a minute whereas the Temperhum is 2x a minute.
I didn’t really expect great accuracy for the RFduino thermometer seeing as it’s measuring from the chip. But this would still be useful in some more basic cases.
I think next on the roadmap for the RFduino is connecting sensors/remote controls (it would be cool to attach my RelaySockets to this and control the 2 connected relays via bluetooth from my Pi and Android smartphone!
A Temperhum from PCSensor.
A great little bit of kit – once you work out the conversion values for the C++ USB/i2c/HID code that lets linux talk to the thing!
Hi all, I was having trouble installing Mythubuntu 12.04 on an old PC I had lying around. Mythubuntu is based on Ubuntu 12.04 so if you’re struggling with the ATI Radeon 9200 on there these steps should help.
(Since I have a Hauppuage Nova-T 500 dual freeview pci card from old projects, and a 2tb drive from new ones, I wanted to see about recording some films!)
Basically, when booting it would come up with a garbled, black or blank screen.
If this happens during the livecd boot, preventing you from installing, when you see the logo:
Hit enter, and F6 for other options, select nomodeset, hit enter to enable then Escape and enter to boot.
If operating from a laptop, you might want to try noapic too.
In the latest grub setup – grub 2 – the boot menu is hidden, making it near impossible to access. Might make it look pretty but is major frustrating for troubleshooting!
The script /boot/grub/grub.cfg it uses is supposed to boot in textmode if it has failed to boot, but this does not work.
Note: you can login, type
and then skip typing sudo with every command below (it gets quite annoying I know!)
To access the grub bootmenu, hold down shift – after all your pc’s bios and add-on cards bios screens have disappeared and until it pops up – it takes a while to appear!
To access the console – textmode, insert the word text and remove ‘splash quiet’ from the kernel options,
also insert the word nomodeset
then press F10 or Ctrl-C to boot with the new settings.
Connect to the internet, if using Wired connection you may need to connect (hopefully you connected ok during the install)
sudo nmcli -p con up id “Wired connection 1”
If that doesn’t work check your wireless connections names with and edit the above command appropriately
sudo apt-get install xserver-xorg-video-ati
(don’t freak out when you see ‘Removing Mythubuntu-desktop’ it seems to come right in the end.
Create a new link for the X server
(Not sure why this breaks after the upgrade but it won’t work without this step!!)
sudo ln /usr/bin/Xorg /usr/bin/X
Edit the default bootmenu script
Add nomodeset to the default grub bootmenu
sudo nano /etc/default/grub.cfg
Change this line near the top:
The # tells it to ignore this bit, it’s a backup so that we can make it quiet again later. You’ll notice text streaming by as the system boots instead of the cute (Myth) Ubuntu …. logo
Ctrl-X to exit, type s and Return to save
Reboot and Revel in the shinyness
I actually ran this command to to start the windows manager, (and I haven’t tried rebooting yet, shhh)
sudo start lightdm
If you have any extra trouble, comment below, check the ubuntu forums and google.
I managed to work this out on my own as I couldn’t find the answer!
I also created a script to set the resolution of lightdm at boot, following the guide here: LightDM Resolution
This did not work as when I started lightdm, the resolution was set higher than I’d set in lightdm, so I don’t think this was part of the fix.
Thankfully it was within my monitors capabilities. I think I set the output name wrong.
I need to figure out the display outputs are available but couldn’t query it from the command line without x running, which seems kinda silly.
I really hate studying from a book. My learning style is much more practial hands on. My mind just does not want to read and make notes on this boring technical book, and I can’t keep myself from getting side tracked.
Case in point, Page 235 of my LPCI 1 text book (awful by the way, don’t get LPIC-1 in depth by Michael Jang, its useless, honestly), I decide to browse through my photo archive after I pulled that shot out yesterday. And this is what I came up with:
Right, mind. Back to shell scripting. (While loops.)