I've spent the last few days trying to setup a test environment on my PC using WAMP to test a basic php/html website I have that I want to make a few basic changes on.
Now I am no programmer, infact a long way off, I dont know code at all. Its partly for this reason that I want to do changes in test mode, so ensure I dont screw things up.
So I finally got wamp up and running, but Im getting fatal errors all the time. I thought Id just dump all the files in the www/ folder and Bob would be my uncle. Of course its not that simple.
Is there any easy way I can do this instead of using WAMP?
After changing some of the path codes in the index.php file, I am now getting this error
( ! ) Fatal error: Class 'AutomotiveClass' not found in C:\wamp\www\repairservicemanuals.com\index.php on line 5
I dont get it because there is no file called AutomotiveClass, however there is a file called Automotive.Class .
Any help would be appreciated, either with what im doing wrong above, or a simpler way I can do this instead of wamp perhaps??
Thanks in advance from a n00b!
You should look into index.php at line 5.
Related
This is related to the question I posted here, but I hadn't gotten much visibility for that question so I wanted to ask in a more general way. I have a Qt 4.7 project that utilizes QFtp functionality. Until very recently we were using this with an FTP server that was vsftpd. Everything worked fine with it then. However, several days ago we moved the server to a new computer. All the contents are identical, but now it uses pure-ftpd instead of vsftpd. Since the move, none of my QFtp code works properly. Is there any known problems that arise when trying to use QFtp with this type of FTP server? I can't find anything helpful online, and it's rather frustrating not being able to find anything wrong with the code and yet having it not work. If anyone knows anything about this and could please share, I'd appreciate it a lot. Thanks!
So I think I just figured something out... I had it run QFtp::list to go through the ftp and retrieve directories, then use list() again on those to retrieve the files in those subdirectories. Our subdirectories to get files out of had spaces in the name, eg "My Directory". Apparently, the vsftpd we were using before could handle this with no problem, but the pure-ftpd can't handle spaces in the directory names. When I switch it to something like "MyDirectory" or "My_Directory", the pure-ftpd works fine. I couldn't find anything online about this difference, but apparently it's there, because that fixed the issue I was having.
I'm trying to clone one fully functioning opencart website to another. The front-end of the website is in Dutch and the back-end I have left English default.
Here are the steps I have taken:
Copy database to new environment
Copy files and edit both the config files(config.php and admin/config.php) to match the server paths.
when i go to test the site, all seems to be working fine, until i go to the admin section where i find this blasted error which seems to be very common:
Notice: Error: Could not load language dutch! in /opt/www/prezent/graviolashop.de/HTML/system/library/language.php on line 39
I'm not sure if this is a path issue or something wrong with the db?
I have googled this issue but none are specific to my perticular case. Has anyone had this issue and resolved it?
Thanks.
If it's unable to load the language and you've copied them over as you say, then this is going to be a config issue. Ensure your path is exactly as it should be. A good way to do this is to create a file such as error.php in your root website folder. Then put some erroneous code in it like
<?php
dfs sdf sd;
Then call the file at www.yoursite.com/error.php, and it will show you the path in the error which you can copy exactly. One other unlikely but possible problem could be permissions, but the former is far more likely
I used the function file_get_contents() to retrieve the data and store it into a MySQL database. At first everything went fine. After a few hours appear something like this.
I use WAMP. Please help me solve this problem because I do not know what to do. Things like this always happen after a few hours.
Thank you.
Regards,
Darnin
If you dont want to see the warnings just add the line
error_reporting(0);
as the first line after opening php tag in the php file.
_____ I have a Django website on my Linux server.
Goal : i want to make web jquery shell/bash of my Linux server , where my site is located , so i could directly from web site pass commands to linux and get all the outputs ,etc.
Questions
Question 1: I know about new subprocess module and popen class , haven't tried it yet , but surely will but right now i experimented with os module. So why os.popen('ls -l') works , but os.open('ls -l >> somefile.txt') doesn't.
Questions 2: i know that when you use screen command somewhere in some file everything that is done is written to a file . Any idea where and what file it is ? Or which file contains everything that is output to bash ?
I am pretty sure that once i come home and try some more :D i will have much more concrete questions but for now that is all... Any suggestions or pointers where i should go , what i should read are appreciated. Thx in advance.
Do you plan to change SSH to web interface of terminal? I would not do that... You have amazing stuff called SSH and which allows you to perform even complex commands securely. I don't believe that you will manage to finish your "webterminal" with the same functionality. But you never know :) Think about transferring files though it, also security (how you will encode the input you will send, or you will just send it as a plain text? Of course https could help here also). I think you will have a lot of fun :)
P.S. I know this post isn't very helpful, but just wanted to make sure if you're not trying to reinvent the wheel...
Well i found an answer myself.
Didn't magically code it yet , but soon will .
So as we all know we have a Linux command screen. This command can make logs of everything that is happening in your screen , by pushing "ctrl-A H" , who uses it knows. But the problem is, that logs are not written immediately , so it doesn't help much . But screen command has also another interesting command called hardcopy , which basically forcefully dumps all screen content copy to a file , where from you'll be able to get result as soon as you'll type it.
I maybe be not accurate and right about explanations of commands , but generally it works like this .
Security
I am in no way Linux expert , and haven't done it yet , but as much as i understand person is logged as user in a screen session , unless he knows root login and password or is super mega hacker which can obtain it, there is basically nothing he can do to destroy the system.
today I ran into an error and have no clue how to fix it.
Error: App with label XYZ could not be found. Are you sure your INSTALLED_APPS setting is correct?
Where XYZ stands for the app-name that I am trying to reset. This error shows up every time I try to reset it (manage.py reset XYZ). Show all the sql code works.
Even manage.py validate shows no error.
I already commented out every single line of code in the models.py that I touched the last three months. (function by function, model by model) And even if there are no models left I get this error.
Here http://code.djangoproject.com/ticket/10706 I found a bugreport about this error. I also applied one the patches to allocate the error, it raises an exception so you have a trace back, but even there is no sign in what of my files the error occurred.
I don't want to paste my code right now, because it is nearly 1000 lines of code in the file I edited the most.
If someone of you had the same error please tell me were I can look for the problem. In that case I can post the important part of the source. Otherwise it would be too much at once.
Thank you for helping!!!
I had a similar problem, but I only had it working after creating an empty models.py file.
I was running Django 1.3
Try to clean up all your build artifacts: build files, temporary files and so on. Also ./manage.py test XYZ will show you stack trace. Later try to run python with -m pdb option and step through the code to see where you fail and why.
You don't specify which server you're using. With Apache you'll almost certainly need a restart for things to take effect. If you're using the development one try restarting that. If this doesn't work you may need to give us some more details.
I'd also check your paths as you may have edited one file but you may be using a different one.
Plus check what's still in your database, as some of your previous versions may be interfering.
Finally as a last resort I'd try a clean install (on another django instance) and see if that goes cleanly, if it does then I'd know that I'd got a conflict, if not then the problem's in the code.