Why does Code Igniter file upload tutorial not work? - upload

I am doing the code igniter file upload demo but it doesn't work. When I try to upload the file I get the following error message:
The following error was encountered while trying to retrieve the URL: http://[::1]/ul_ex/index.php/upload/do_upload
The system returned: (111) Connection refused
Clearly there's a problem with my path but I don't understand what is going wrong. I even copied and pasted the code just to make sure it wasn't a typo but it still doesn't work!
Do I need to update my routes?
Thanks in advance

OK, I overlooked a pretty simple thing which was I didn't set a base path in my config file. I set the project up quickly to test uploading but forgot about this. No problems now!

Related

Can't run MusicStore sample

when I'm trying to run the MusicStore sample described here the download of docker images breaks with following error.
Can someone confirm this?
The instructions need to be updated. There were two Config Server paths steeltoeoss/configserver and steeltoeoss/config-server. This was confusing and the first one was cleaned up. Please use steeltoeoss/config-server now.
A ticket will be created to fix the readme.
Thanks for pointing it out.

joomla error establishing a database connection

Working in Joomla, I was trying to update a URL redirect from old URL to new URL via .htaccess but I think in my messing around on the backend, I did something that is now causing old URL to show an error message "Error establishing a database connection" and nothing I do is resolving this error message.
Prior to making the change I made a copy of the .htaccess file and renamed it to something else so that if I made a mistake such as this, I could easily revert back to it but restoring that file did not work. I also cleared my cache which fixed other issues but not this particular one. Ended up creating a new page and menu so now the new URL works like it's supposed to. Just trying to learn how to get back the old URL. Please help if someone knows a good fix. Thank you in advance.

Invalid block type error in cytoscape

I am facing an error while opening a cytoscape file. It was all ok when I saved it and closed cytoscape, but when I tried to open it after a day it says "invalid block type". Not sure what is the problem. Please help, as it has things I have been working on for quite a while.
Thanks in advance
Best
Devyani
So, are you talking about a session file? If so, can you send the file to us so we can diagnose what might be happening. Unfortunately, that error comes from the unzip process, I think, which probably means that the file is corrupted. I've seen this happen when the write gets interrupted for some reason...
-- scooter

magento front end is not working

the admin form is working well but problem with the front end
problem that
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 847199895
please help
regards
Ankush
i think you are new to magento. But no worrys, you find the exact error.
Go to your magento installation folder. You will see a folder named "errors". In that folder rename the local.xml.sample file to local.xml.
Your frontend will display the errors instead of Error log record number: 847199895. Copy the error and let me know what it is. So that I can help you.

How to install s3sync

This seems like an excellent script but lacks a key part to its installation I can't seem to figure out. Maybe someone out there can help a newb.
What I've done so far :
Installed the s3sync package.
Downloaded the s3 certificate
Downloaded the s3 ssl package
ran it with sh ssh.certs.shar
Edited the s3conf.yml file to have the correct AWS id and password and a path to the cert file
When I run the s3cmd.rb I get the error "You didn't set up your environment variables; see README.txt"
To which I agree, there is no information written regarding where I specify destination or target.
Guesses :
-The cert file has to be in a specific place to which it isn't, or its in the incorrect cert file
-the s3conf.yml may not have the correct information written in it.
UPDATE:
Uninstalled everything, and installed it as a gem. Made sure the s3config.yml is still in /etc/s3conf/ . Still nothing though.
Some b/s here but I went into the s3config.rb
Found this line :
confpath = ["#{ENV['S3CONF']}", "#{ENV['HOME']}/.s3conf", "/etc/s3conf"]
and ripped it apart to this :
confpath = ["/etc/s3conf"]
Done, problem solved.
Yes. The environment variables are not being found. This troubled me for a while. It is because the locations you are setting in that initial line of confpath code ["#{ENV['S3CONF']}", ... is not actually the location of the variables contained in the .yaml file.
As Trip says, hard setting that value to the dir containing the .yaml file solved this problem for me.
You could actually set the values using 'export' but really, this is much easier!

Resources