security_man
Forum Replies Created
-
it also messes with globals somehow… we use a description pulled from the_content and it is displaying something totally different when a qa category is listed on a page
i am getting a similar error when a poll is completed – the results are recorded,i can see them in the admin area, but this error pops up where the poll once was:
Invalid argument supplied for foreach() in public_html/wp-content/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Page/Main/Results/Poll.php on line 21
Looking at the code the $_GET[‘id’] is not being passed so the database query is returning nothing in /wp-content/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Page/Main/Results/Poll.php
unfortunately i am not that good with classes so i am not able to figure out where that is getting lost, but hopefully this will help
this is what i am using
Most recent version of plugin: 2.9.3
Current version you are running: 2.9.3
Database upgrade required: NoForum: Hacks
In reply to: writing admin plugin but loosing slashes in url returned from functionit was a custom function i had written to interface with timthumb. Thanks for the help, but it was a dumb thing i did 🙂
i can also confirm, but it seems to only happen on custom post types for me… downgrading to 1.9.6 has fixed the issue
Forum: Fixing WordPress
In reply to: wordpress and oscommerce htaccess problemfinally found the problem.
i was using wordpress functions in my oscommerce installation by using the following two lines in my oscommerce application_top.php:
define('WP_USE_THEMES', false); require('./wp-blog-header.php');this caused the 404 error even though the page showed up because wordpress was trying to find the file in its database.
the solution was to require wp-load.php instead of wp-blog-header.php – fixed it right up
Forum: Fixing WordPress
In reply to: wordpress and oscommerce htaccess problemjust an update. aparently you should have all your rewrites in the root htaccess file for both oscommerce and wordpress, however i am still not able to get the following code to work. any ideas out there?
RewriteRule ^store/([a-z0-9/-]+)-p-([0-9]+)\.html$ product_info.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-c-([0-9_]+)\.html$ index.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-m-([0-9]+)\.html$ index.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-pi-([0-9]+)\.html$ popup_image.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-pr-([0-9]+)\.html$ product_reviews.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-pri-([0-9]+)\.html$ product_reviews_info.php [NC,L,QSA] # Articles contribution RewriteRule ^store/([a-z0-9/-]+)-t-([0-9_]+)\.html$ articles.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-au-([0-9]+)\.html$ articles.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-a-([0-9]+)\.html$ article_info.php [NC,L,QSA] # Information pages RewriteRule ^store/([a-z0-9/-]+)-i-([0-9]+)\.html$ information.php [NC,L,QSA] # Links contribution RewriteRule ^store/([a-z0-9/-]+)-links-([0-9_]+)\.html$ links.php [NC,L,QSA] # Newsdesk contribution RewriteRule ^store/([a-z0-9/-]+)-n-([0-9]+)\.html$ newsdesk_info.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-nc-([0-9]+)\.html$ newsdesk_index.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-nri-([0-9]+)\.html$ newsdesk_reviews_info.php [NC,L,QSA] RewriteRule ^store/([a-z0-9/-]+)-nra-([0-9]+)\.html$ newsdesk_reviews_article.php [NC,L,QSA] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]Forum: Hacks
In reply to: need help with custom fields on a custom post typei am thinking that i need to duplicate and modify the following functions:
* post_custom_meta_box in wp-admin/includes/meta-boxes.php
* meta_form in wp-admin/includes/template.php
* list_meta in wp-admin/includes/template.php
* _list_meta_row in wp-admin/includes/template.phpwhere i am really getting stuck is how to create the array. i am thinking something like:
$myarray = array( line-items => array{ $x => array(material=>'',vendor=>'',price=>'',number=>''), $x => array(material=>'',vendor=>'',price=>'',number=>''), $x => array(material=>'',vendor=>'',price=>'',number=>'') ));but i have no idea how to modify those functions to get something like this
Forum: Hacks
In reply to: get_terms() – returning only terms with live postsprolly aughta make your own… although i am not sure this wouldnt be a bug to report.
Forum: Hacks
In reply to: Dynamically retrieve youtube embed url from postah, then try do_shortcode in your php file
Forum: Hacks
In reply to: Embed element in last wordpress post?not sure i follow you, but why not change it to
if ($count==[posts_per_page])?Forum: Hacks
In reply to: Dynamically retrieve youtube embed url from postcheck out the wordtube plugin… i think it is what you are looking for
Forum: Hacks
In reply to: get_terms() – returning only terms with live postssetting hide_empty to true doesnt work for this?
Forum: Hacks
In reply to: jQuery in functions.php causes "header already sent" erroryou have blank space somewhere that is being echoed before it should – if you can use a pastebin then we can see exactly where the issue may be
Forum: Hacks
In reply to: Make pages behave like categoriesif you havent already you need to look at the function reference. start with query_posts and go from there. your question is very general and quite easy to do if you research the information provided in the codex here
Forum: Hacks
In reply to: Get last date when any item in a custom taxonomy was updatedi may not have put the correct parameters in it, look at the function reference for the_date or get_date and it should give you the info you need