logo
IRC Archive / Freenode / #wordpress / 2010 / May / 20 / 5
cipio
so my old pages don't link -- they were foo.com/about_us -- now i am forced to use foo.com/wordpress/about_us to see it
rhandom2
well you can adjust all in the database using pma if you already did the install
cipio
suspected apache, but it is not there
rhandom2
wp options table as I recall
cipio
from the web interface, is there an option?
already did the install . . . yes
rhandom2
well often people can access phpmyadmin from cpanel or plesk... or directly
pma = phpmyadmin
cipio
i just use mysql from bash, but i think i can change this in settings . . .hold on
rhandom2
well from bash you could as well... never do myself as I am not that good @ MySQL command/queries just yet..
in settings you can as well yeah
cipio
got it -- i just changed the site url in settings, thanks for steering me!
rhandom2
sure you're welcome
cipio
hmm . . so it all looks right in wordpress panel
rhandom2
Now I need to get some help adding a upload field to a plugin to upload images ... anyone ideas why http://pastie.org/969052 does not work?
@ cipio ?
cipio
but when i go to http://27.28.288.22/about_us i get an apache error
rhandom2
well then some paths are still off... use pma
cipio
what is pma?
rhandom2
phpmyadmin
nkuttler
.codex moving wordpress > cipio
rhandom2
and or check error log
link added talks about pma or phpmyadmin as well
.htaccess might have to be adjusted as well
base url
cipio
ahh . . . thanks -- hold on
rhandom2
Anybody any experience with adding an (image) upload field using WP image uploader functionality to a plugin in here?
Sample code that works? Trying to add it to datafeeder random adds.. no luck and no more clues...
ivan__
Warning: filemtime() [function.filemtime]: open_basedir restriction in effect. File(/home/www/cashflow/www/sitemap.xml) is not within the allowed path(s): (/home/users1/h/hedy/:/usr/local/lib/php/:/tmp/) in /home/users1/h/hedy/domains/cashflow.lutsk.ua/wp-content/plugins/google-sitemap-generator/sitemap-ui.php on line 595
how to fix a bug?
cipio
still not able to get to foo.com/about_us
re-generated my .htaccess file
database looks good for wp
but still getting 404 error
my old site had a wordpress 404 as well . . .
instead of the default apache folder .. . suspecting apache at this point . . .
lht
Hi all, The my_func will be executed everytime a post is saved denoted by the action: add_action('save_post', my_func); If the author is updating a post, my_func() will also executed. Is there any way I tell that a post is being updated and I can prevent my_func() being executed. Thanks.
cipio
pretty simple what is going on here . . . [Thu May 20 12:07:43 2010] [error] [client 84.36.54.285] File does not exist: /var/www/wordpress/about_us
so i think this is a symlink issue
so only the home page is loading
rhandom2
@ cipio did you upadte siteurl in wp options?
as well as home?
cipio
yes -- siteurl is updated in wp options
what do you mean by home?
rhandom2
option id 38
http://localhost/wordpress2 for me locally for example
two fields that need changing in wp options
cipio
that value is correct
the option_value is correct
rhandom2
and htaccess ok?
I hardly ever have symlinks issues
cipio
checking to see if mod_rewrite is enabled
pretty simple what is going on here -- /var/www/wordpress/about_us doesn't exist
don't know how wp handles routing, but it is not routing at all
so i am guessing apache has the problem
rhandom2
are permalinks used?
cipio
rhandom2 not sure what your question is
rhandom2
did/does ur wp install use pretty urls?
cipio
didn't specify that
worked on my old server
rhandom2
site is online now to be viewed?
cipio
http://69.164.218.233/
yes
rhandom2
well you seem to be using permalinks
wp-admin works
cipio
yes -- so what do i need to enable
rhandom2
please paste .htaccess @ http://wordpress.pastebin.com/
and paste link here
would liek to see it
cipio
http://wordpress.pastebin.com/P8JE4ZEs
rhandom2
wp options permalink structure I often use is /%year%/%monthnum%/%day%/%postname%/ what is yours in wp options?
cipio
http://69.164.218.233/2010/05/sample-post/
rhandom2
you can check permalinks in post using post editor as well btw
and so you use http://69.164.218.233/ as url in wp optiosn now?
cipio
yes
the problem is apache is not routing . .. i think there is a mod i need to enable
rhandom2
well check if mod rewrite is running / installed
cipio
don't think it is
rhandom2
if you have ssh access you could
cipio
i'm on the server now, just want to find an example of how someone has set this up with the virtual hosts file
cipio
a2enmod rewrite <-- fixed everything, thanks
rhandom2
you're welcome
cipio
off to real work . . . have a great day and thanks
WDS-Brad2
sivel ansimation you ready for the new after party pics?
ioricloud
algum brasileiro
hehe
rhandom2
Of Nederlanders die kunnen helpen met toevoegen afbeelding upload veld in bestaande plugin....?
Anybody any experience with adding an (image) upload field using WP image uploader functionality to a plugin in here?
Come on people... just need a little boost here... pretty please .. http://pastie.org/969052 is the code I added to datafeedra radnom adds plugin, but it does not open an upload box yet..
I am wondering why not.. no php or apache errors so I guess coding is ok, but just does not work..
This is my first attempt at hacking a plugin... just wanted to add an image upload field. field is there now, but does not work
maybe the scripts needed are not enqueued and or registered properly... but what is wrong?
jguldahl
I am trying to log in to the WP control panel, but I am just redirected back to the login page (the password is right, I even reset it) - any ideas?
if I manually type in domain.com/wp-admin however, it works
never mind, figured it out. :)
rhandom2
Well I guess no one here available for help with plugin customization now. Will check back later
mikronaz
hey, is it posible to show posts witch has two tags like: "hot, dog"
I am trying to make something like filter..
nkuttler
.codex query posts > mikronaz
mikronaz
nkuttler, yeah, thats nice, I am talking about selecting one tag, saving it, then selecting other..
nkuttler
huh?
beerkid
What would be a reason a post would say "missed schedule"
MadLemz
beerkid: http://tinyurl.com/2ec3ala
FirstSgt
is there a wordpress conditional that says if(is_a_custom_page_template_called('thecustompagetemplate'));
jonkristian
Hm, something appears to be very wrong with this validation, http://validator.w3.org/check?uri=http%3A%2F%2Ftaroretkjerring.no
Any ideas?
nkuttler
jonkristian: #html
jared^
its because you are not encoding you & jonkristian
& should be &
even in urls
EnlightenMental
FirstSgt: if(is_template(home-page.php))
& Vs & will destroy validation
nfreader
24 queries in 3.133 seconds
...
I think... something is broken
EnlightenMental
whos the host?
nkuttler
or high load
nfreader
GoDaddy
jared^
thats your problem
lol
nfreader
yeah, probably
EnlightenMental
yeah GD shared hosting is whack
nfreader
anything I can look at or try on my end?
EnlightenMental
nothing that will give a vast improvement
srikat
any recommendations for a plugin that will let me play .swf files in widgets?
should provide a wrapper player around the swf
w/ play controls
w3prodigy
morning channel, curiosity has struck me again.. does the WP login handle anything in regards to whether the user has javascript enabled or disabled? having an intersting interaction with javascript disable in some tests
MadLemz
anyone know a good plugin for monitoring performance? such as recording total time to load page, queries, etc?
(think devel module for drupal)
sha1sum
Hey all. I'm working on a recipe site (to put it simply) and have made it to where users post only on the front end and are locked out of the wp-admin section. My clients now want me to add in the ability to do draft posting and scheduled posting from the front end. I'm sure I can do this, but after the user creates the post, they are presented with an image management page where they can upload and attach images to the post from th
ferik
My wordpress admin "Edit Post" list only shows posts one at a time suddenly. So one page per post instead of 10 or whatever. This problem is only in the admin pages. Any idea?
MadLemz
Super simple plugin (6 lines) doesn't seem to be working. see what's wrong? http://pastebin.com/sZs7F493
ferik: What did you do last before it started happening?
nkuttler
.codex adding admin menus
w3prodigy
instead of wpmu-admin.php try options-general.php
MadLemz
tried that (even though it's not where i want the link) - but still nothing. i have this file in mu-plugins btw if that matters
ferik
MadLemz: restored from archive & db backup
MadLemz
you sure there ARE more posts than just the 1? :P
ferik
MadLemz: quite
MadLemz: it says All(167). Says displaying 1-15 of 167 but only shows 1
MadLemz
i'm an idiot. i never call my function ><
now it works perfectly :D
sha1sum
Okay... I have a humdinger for you guys. And I don't use the word "humdinger" often.
Again, same recipe site... The image upload works perfectly, and all images display fine, but my clients now want the ability to select which image displays first.
Right now, the images pull up in the default WP descending chronological order.
So how can I customize the way the image attachments are ordered?
srikat
any plugin that adds a widget to add player with controls for playing a .swf file
?
sdwrage
Hey all
how does one add a page without adding it to the menu?
cHiKNPad
you can use a plugin to exclude pages or you can edit your list pages to exclude them
.codex list_pages
libertiy
could someone please share with me working NGINX rewrite rules for wordpresS?
i tryed several i found online none seem to work
it should just do domain.com/page/subpage/thirdpage prefferable
no index.php and no 404 errors which i get everytime
i had it working with site.com/index.php/page wich is plain ugly
nobody uses wordpress with nginx hrere?
sivel
libertiy: I do
libertiy
ive searched for long time and tried like 5 of them all not working :(
could you please share yours if they work? like site.com/page/subpage/thirdpage
srikat
hey sivel
sivel
libertiy: sure, let me give you a stripped down version of my entire vhost config for one of my sites
sdwrage
cHiKNPad, what plugin is good for it?
libertiy
i have it working but with index.php/pagename i wonder if it would be able to remove the index.php
sivel: would be great thx man, you would make my day
srikat
cHiKNPad: hey
sivel
libertiy: here is my vhost config: http://wordpress.pastebin.com/mKK0WvAc
libertiy: then in addition to make WordPress believe I have mod_rewrite since I am not running Apache I do: add_filter('got_rewrite', '__return_true');
in my themes functions.php
but that last step is not necessary, you can simply just remove index.php from the permalinks on Settings->Permalinks
fern_42
Howdy y'all. Anyone know a simple way to create an online demo of a plugin?
libertiy
thanks a lot sivel that works indeed :) thx!
EnlightenMental
.plugin subscriber account cancel
fern_42
uh, besides just running it on my site
doc-bot
EnlightenMental: http://wordpress.org/extend/plugins/s2member/changelog/
srikat
fern_42: use camsudio or jing to capture the plugin in action
EnlightenMental
.plugin allow user to cancel
doc-bot
EnlightenMental: http://wordpress.org/extend/plugins/search.php/page/2%3Fq%3Dswitcher%26sort%3D
srikat
fern_42: cam studio*
fern_42
srikat: not a bad idea. But, it needs to be a working demo
srikat
does anyone know a video plugin lets me display swf in a widget (need player controls)
sivel
srikat: hello btw ;)
fern_42: some people setup a demo site and have the plugin working there
fern_42
yeah... the idea is to not have to dedicate a site to it either
but that's a good idea too
I guess this isn't normally done then?
EnlightenMental
so if /pulic_html/wp-content/themes/theme_folder/ are all 775 permissions, and i still cant edit theme files through the back-end... where do i look next
srikat
correct, no one expects to see a "live plugin"
before they download/buy
sivel
fern_42: not really, generally most people either offer screenshots or screencasts, or they "use" the plugin in the page/post describing it
on rare occasion you will see a demo site