-
Posts
63 -
Joined
-
Last visited
Everything posted by Godfrey
-
Ah, thanks for the tip arjen! In the end this technique worked smoothly! At first it this technique of exporting and importing the tables didn't work either, and gave me the exact same error. I think that the compiling of the tables during export still somehow stores the local name of the database, so during import it tries to create a new database with that name. But how my phpmyadmin/mysql is setup won't allow users to access tables they aren't "added" to, so there's no way for the user to add in tables to a non-existent table. However... what I had to do was to: Move files from the local server folder to the live server Create a new database on the server. Rename the local database exactly the same as the newly created database on the live server, then add the user, which I log into phpmyadmin with, to that new live database. Export from the local then import to the live. Change the config.php settings only on the live server. This way the table import technique worked! Hope this might help others also using this funky cPanel / phpMyAdmin / MySql setup of mine. Now I just have to setup my dual config php files and I think fix the broken page links, as mentioned in some other posts...
-
I'm trying to follow some steps from other threads about migrating a site from a local server to a live server. I've uploaded my site files from my local directory to my live server's directory, and I've created an .sql export file via phpmyadmin on my local server. However, when I try to import this into my live server's DB (also phpmyadmin), I get this error: I've tried editing the credential settings in the config.php file in the site/ folder, but a few things are confusing me: does editing this file have anything to do with this error? if I edit this file, what should I put as the database name, etc., since the db hasn't even been created yet? (When I first opened the file, I couldn't find the db credentials at the bottom. It just said "Installer config data appears below", then nothing. That's weird that it just disappeared... I ended up copy and pasting the lines of code for credentials from another config file ) Other than the config.php file, what else can I do to remedy this error? Another catch with my setup is that with my host's cPanel/ phpmyadmin setup, I have to create mysql users and databases through a wizard. All the user and databases are prefixed with myname_, and I have to manually add users to databases through the wizard....
-
Ohhhh, that's a nice solution! My slider images do in fact go to other pages on my site, which are photo albums. I may switch to this method.
-
Kongondo, I hear you. I need some of that precious yet elusive shut-eye too So the reason I brought up the topic (Sorry this is a little off topic from the original question) was because right now for a project I am working on, I have a image slider which displays the image, the image alt attribute as a caption, and places a link over the image so that each image can link to another page. Within the plugin is an array where each element, representing the images, is an object literal with these three fields. Using PW API to manage this slider, I simply pull the fields from a multiple images field. For each image, I output the image path, the image description for caption (the alt attribute). However, for the link of each of the images, I ended up adding a repeater field with only one field in it - a page field. So for however many images there are in the slider, you just add as many of those repeater fields. Each repeater field holds a link that corresponds with one of the images. I actually thought of doing something like your hackish method, @adrian, I just wasn't expert enough to do it I think it would be nice if you could add a link property to each image in the images field, just like how there is a description property for each image (so you wouldn't have to use a hack). I was thinking of adding this as a suggestion to the roadmap. But enough of the tangent, maybe I will post this there sometime :]
-
Ah, this is very nice insight! Thanks Kongondo Looking into the /site/assets/files/.... folders, it seems that PW does not do any compression, as the original-size image files are simply copied over into that folder. Now you have me more curious; I wonder if I can modify the table so that each image includes a URL (link) column as well, beside the Description column, so that I can have each image hold a link to anywhere I want. Then for example I could do something like: .... though I'm afraid that I might have to mess around with some core scripts as well?
-
About Ryan and ProcessWire - an interview with Ryan Cramer
Godfrey replied to einsteinsboi's topic in Pub
The graphic design explains why this site looks so darn pretty. Love the aesthetics of this site. Also this is awesome: -
Forgive me if this is a silly question, but where exactly does PW store the data that is uploaded? I'm most curious about images. If you upload your image to the images field in PW, where does it store data for that image? Is it in the database among the columns created? Also, does PW compress images? So if you upload 250mb of images, would that actually take up less space with PW?
-
Dang, cool site! Love the graphics style, interface design and how easy it is to navigate around. And yeah, the mobile style menu is simple and sweet. The little details such as the closable menu and transforming search bar are really neat. ^ Agree
-
^ Completely agree. I just started learning AngularJS two or three days ago and I cannot believe what I've already been able to whip up. It's such a blast!! Also, nice site! Love how clean it is. The one thing for me there's a bit too much pink and red and it seems to clash with the dark purple, but that's probably because I don't see this color scheme often. Like others said, I think the responsive part is really awesome. Love how the posts transition as you adjust screen width, and especially how the logo responds as well.
-
PW Online Installer (download of latest PW install to server)
Godfrey replied to Soma's topic in Modules/Plugins
Nice catches. These same steps helped me. Thanks a bunchload @Soma! This really helped me. This + your Simple Site profile installed splendidly for me. Such a time-saver! -
How to escape get("")->url when echoing in href="" field
Godfrey replied to Godfrey's topic in General Support
No problem I can't say much given the errors in my original post :B -
How to escape get("")->url when echoing in href="" field
Godfrey replied to Godfrey's topic in General Support
@arjen and @teppo: Ohhh, didn't know about the necessary backslashes around "gallery". (I looked on the cheatsheet and the example for get() was $pages->get("selector") ) This worked!: Woops, both the missing "echo" and $albumimage were silly mistakes of my when typed this question (@arjen you were right), sorry about that! @teppo, for some reason this wasn't working for me and broke my code: Thanks both! -
Nice!! Love the design aesthetic + the subject matter
-
Cool site! What did you use to make the bottom of the page scroll up above the top part like that?
-
I'm trying to get a page url and echo it in a link, however I keep getting error: I have tried two methods: But both are getting me the same result. Sometimes half my page just doesn't even load. I read around and think I need to escape my quotations. I have no idea what I would escape in this case though.... I think the key problem here is the double quotes while trying to select gallery ("gallery"), because when I am doing this without having to use the get() method it works perfectly. (e.g. $page->$albumimage->url; works for me) What would I escape to get this properly working?
-
Hmm. No luck with anything related to the php.ini. Tried removing that sem-colon, but I think ti's just that the writers of the ini file have a funny preference to put the semi-colons at the start of the line. Thanks for the quick reply. I finally gave up and just deleted "php_xdebug-2.2.0-5.3-vc9-x86_64.dll" in wamp>bin>php>php5.3.13>zend_ext, since I read in different places that one solution is to just disable xdebug. I have no idea what I just did, but it works now... :\
-
Yes, thanks for the link Kongondo! That will most definitely come in handy.
-
Hmm, I got the same problem. How do I change this max_level? I found php.ini and changed these lines: ; Maximum input variable nesting level ; http://php.net/max-input-nesting-level ;max_input_nesting_level = 200 Is this correct? Even after this I'm getting the same error whenever I open a page with a repeater field. Edit: Oh, I found that I could edit php.ini by clicking "PHP" in the wamp control panel. However, after changing the value in that to 200 as well, I am still getting this error..
-
Oh, it was the case that config.php did not exist in my site folder. I have no idea how that file disappeared in the process of extracting and uploading. But basically I extracted the original processwire zip file again and found that there did exist a config.php in the site folder.
-
Oh, huh. So where was it in the wrong place? I'm actually not sure which file is ./site/config.php ... because in my site folder there is no config.php.... Is that the problem in itself? I found a config.php and index.config.php in my "wire" folder, but not my "site" folder.
-
I'm trying to install another copy of processwire, this time I replaced some files with the BootWire files. Since my FTP was being incapable (extremely slow and not uploading all files correctly) I wiped everything then used cPanel to upload a zipfile instead. After extracting, on the first install page I'm getting "Error: File ./site/config.php must be writable. Please adjust the permissions before continuing." What file should I change permissions for to fix this? I've played around with the file permissiosn for multiple folders and files but with no luck. What permission should I set the file? Will 755 do? Thanks for any help!
-
Broke the installer? (Installing onto local testing server)
Godfrey replied to Godfrey's topic in Getting Started
Huh, strangely, it worked seemingly because I changed the port number back from 80 to 3306.... not sure why, since in my WAMP config file the port 80 is specified... -
So I'm trying to install processwire on my local testing server. I downloaded a fresh copy of the pw files into a local folder, then used dreamweaver ftp to upload them to a folder in WAMP. After hitting the "continue" button in the MySQL database/File permissions setup page, the install guide freezes for a long time and chrome just says "waiting for localhost" at the bottom left. Then, after a while, I get this blank processwire install page: Any ideas as to what is going on? I'm pretty sure I created a database table and user right. Here are the credentials I entered: DB Name: processwire DB User: godfrey DB Pass: ..... DB Host: localhost DB Port: 80 (changed from 3306) Also pretty sure I set up my user privileges right:
-
Ahhh, I see. Of course, scope! Makes sense. Thanks Apeisa, Soma and Kongondo!