I tried to upload my app to webserver to check it's performance, but unfortunately I got weird error:
Error: Database table news for model
News was not found.
The Most funny things are:
- In Model file I got var $useTable = 'other table name';
- This table exist, connection with DB too!
- on my local server everythings works great...
Any suggestions? Yes, I cleared the cache.
Cheers!
check model file name, capitalization matters on some server but not all. if it cant find the model file, then it doesnt know $userTable. just guessing
Related
So, I mucked things up pretty good. I've researched this topic, but none of the solutions I found work or quite fit my situation.
Let me explain. I had somehow managed to get a local install of WordPress using Xampp onto my Win10 PC. I remember it was a struggle then and that was a week ago. Problem is that I forgot my admin password and I couldn't figure out a way around it. So...
I did a database drop in phpmysql and recreated the wp table.
I copied the wp_config.php file into a safe place.
I deleted the wordpress folder in c:/xampp/htdocs.
I downloaded a fresh copy of WordPress and extracted it to c:/xampp/htdocs/wordpress.
I copied the old wp_config.php file into the newly re-created folder.
I ran WordPress install and got to the screen where it says it's installed and here's your user name.
I clicked on the link to the Login screen.
That's when I got the message -- Error establishing a database connection.
I'm not sure how that's possible considering it was just connected and created all the tables in the database.
Here's what's in my wp_config.php file, though I'm not sure what could be wrong with it since it was working fine a second ago (:{):
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wp');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
I'm sure someone can tell me where I went wrong and hopefully how to fix it. I'm fine with starting over again. I just want to get it installed so I can learn the inner-workings. ;P
Thanks in advance. I look forward to learning from you all.
Jen
FYI, I ended up uninstalling Xampp and re-installing it in order to resolve this.
I am trying to publish sharepoint2016 website including Power View reports which created by SQL server services service (SSRS). there is top level site and bi center as sub-site; both are working fine but problem is that when I try to view the report it said the error:
"the web application at [url] could not be found. verify that you have typed the url correctly. if the url should be serving existing content, the system administrator may need to add a new request url mapping to the intended application."I search about the error but It does not reach my target.
https://forums.asp.net/t/1970799.aspx?SQL+Reporting+Service+Runtime+Error+The+item+reports+Report1+cannot+be+found+rsItemNotFound+
note that the whole site is working fine in domain.
Please help...
Thanks...
Sorry for late guys...
i found that Power shell of SP cannot execute any command related to SSRS
it just need to reinstall SSRS service compatible with SP2016. then every thing is fine.
I moved my old database from Yahoo servers to a new place. The new server already had a database, so what I did was integrate the old database into the new database. Originally in Yahoo, my website had the following permalink:
mysite.com/wordpress/services/web-design
For the Yahoo servers is mandatory to use an additional file if your domain, if your site will be developed in Wordpress (... mysite.com/wordpress/) you can put whatever name you want to that file but there should always be a file. As this is very bad for SEO, I moved my site to a new place. In the new server, my permalinks are:
mysite.com/services/web-design
Everything ok, however when I try to open the "graphic design" page the permalink is like this:
mysite.com/services/js-jquery-2/
First I tried to confirm that maybe there was a post or page created with that strange name. After checking everything was fine, there was no page or post with that name. Then I made a full search for the word "js-jquery-2" throughout the server (using the keyword search function from Dreamweaver) (I have the server as a backup on my computer.) No word was found in the entire server. Maybe is at the database, this strange word is maybe saved there but I do not know how to locate it, in any case finding this word is perhaps not the solution.
Other thing I notice is that there are two groups of tables inside the database with almost the same names, for example there is a "wp_options" and there is a "wp_vzea_options", they share almost the same, should I try do delete a group ? thanks in advance for any help or advice.
I am trying to move a cakePHP project I completed a few months ago from a server (a friend's server) to my own web server.
I have set up a database and changed the database config file to match my database/login credentials.
when I navigate to http://babbage.cs.missouri.edu/~jam2z9/muve/index.php you see it looks as if it is a brand new project. When I go to just /muve instead of index.php it says I'm missing a ~jam2z9Controller file but I don't see any files from the old server that are like this to edit and change to ~jam2z9.
I feel like this should be a very simple transition once I hook up the database credentials but I'm just confused as to what my issue is?
All of the database tables in my new database are blank as I just imported the .sql file into phpMyAdmin. It all seems to be connecting fine but it will not go to the home page just the aforementioned generic cakephp screen?
In your bootstrap.php add the following line:
Configure::write('App.base', '/~jam2z9/');
This is because as far as Cake sees it you are hosting it in a sub-sub directory.
Edit: There are more details about not being able to use mod_rewrite here
I am changing host for my website and it contains a lot of data. I moved all the data in my domain folder under Public_html directory and then imported all of the DB from PhpMyAdmin. Before importing the database it was showing twenty thirteen theme and Hello world post but after importing it just shows a blank page without giving any error. Although the /wp-admin URL works fine. One time i used the WP Backup plugin and made a DB backup with it and it worked also but it is not working now, i've tried several times. Also I've tried importing every table in my DB and left the wp_options and it worked but the settings weren't there and also when i try to change the theme it again shows the same error.
Please guys help, because i've been charged $2/day by my new host and my website isn't working now.
use Duplicator plugin to move your site from one host to another
A. You must go to the admin and activate your theme again ..
B. Verify for the settings blog_url and home_url
In general - For exporting / moving a site there is really nothing to it , you just need to :
1 . move all your folder structure .
2 . Change wp-config . Put all correct DB info ( pass, user, ip, db name ) . SALT optional. donĀ“t forget wp_ prefix ..
3 . go to phpmydmin , import the old DB on a blank one .
and then run these :
/**
To update WordPress options with the new blog location, use the following SQL command:
**/
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
/**
After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as abolute URLs instead of relative URLs, so it needs to be changed with the following SQL query:
**/
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
/**
If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages:
**/
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
Then verify for the settings blog_url and home_url in wp_options- and you are done.
If you have followed the above correctly - the site will be on and OK wordpress-wise.
Note: do not forget to update the wp-config DB settings including wp_prefix ( also update in SQL )
This problem can sometimes be caused outside of wordpress, it could be a php error. But before you get to that try these few extra ideas:
Re-save your permalinks in wordpress, do this by picking another setting and then the one you were originally using.
set WP_DEBUG mode to TRUE in your wp-config.php, this will output any errors to your page.
Disable any plugins, cache plugins can cause problems like this.
Check your server php log for any errors.