Brandon Morgan
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Super Cache] Blank Pages generated if query in urlHere are a couple logs that may be related. I have entered SITEADDRESS in place of URL to protect identity of site. Also, worth noting is I can access these type of pages when logged in. When not logged in I have to disable caching to see them again.
21:58:04 41684 /2016/02/?post_type=news_article wp_cache_get_cookies_values: return:
21:58:04 41684 /2016/02/?post_type=news_article wp_cache_check_mobile: SITEADDRESS443/2016/02/?post_type=news_article
21:58:04 41684 /2016/02/?post_type=news_article supercache dir: D:\home\site\wwwroot/wp-content/cache/supercache/SITEADDRESS/2016/02/
21:58:04 41684 /2016/02/?post_type=news_article wp-cache file exists: D:\home\site\wwwroot/wp-content/cache/supercache/SITEADDRESS/2016/02/wp-cache-8252b00e3500b1518ef006cc3b3af9f6.php
21:58:04 41684 /2016/02/?post_type=news_article Serving wp-cache static file
21:58:04 41684 /2016/02/?post_type=news_article exit request
Does any of that help?
Sorry for the delay in response. The scan we are running is a full scan through Acunetix. It did seem to work, however, not 100% that was the issue or not. My thought was when Acunetix was trying to inject values Null was being passed into you plugin and throwing the error. So, added the validation and it stopped. Just may be something to look into. Thanks!
After some further research I think it may be due to the $offset not being validated on line 895.
So, I am going to try adding
is_numeric($_GET['offset'])which would make line 895 result in the following:$offset = (isset($_GET['offset']) && is_numeric($_GET['offset'])) ? $_GET['offset'] : 0;I believe during my security scan something other than an integer is being injected which would throw that error.
Forum: Plugins
In reply to: [WP Job Manager] Add new column to Job Listings in adminHey eckul! I was looking for the same solution and figured out how to do it if you need to in the future. I am going to to paste my personal example for you. This was all done within my theme’s functions.php. I wanted a “Store #” column and here is how I did it:
Add column to view in All job listings admin screen:
// adds column to admin list of jobs function add_job_store_number_column( $columns ) { $columns['job_store_number'] = __('Store #','wp-job-manager'); return $columns; } add_filter( 'manage_edit-job_listing_columns', 'add_job_store_number_column',2 )The “,2” portion in the filter was just for it to show first. Not sure if correct but worked for me.
Now to insert the data associated with the column:
// displays store number data for specific column in admin function display_store_number_data($column_name) { global $post; $storenumber = get_post_meta( $post->ID, '_job_store_number', true ); switch($column_name){ case 'job_store_number': echo $storenumber; break; } } add_action('manage_job_listing_posts_custom_column','display_store_number_data');And for a little freebie if you want to also make that column sortable like I did:
function store_number_sortable ($columns){ $custom = array( 'job_posted' => 'date', 'job_position' => 'title', 'job_location' => 'job_location', 'job_expires' => 'job_expires', 'job_store_number' => 'job_store_number' ); return wp_parse_args( $custom, $columns ); } add_filter('manage_edit-job_listing_sortable_columns','store_number_sortable');Hope that is helpful and at least if anyone new stumbles upon this maybe it will help them. I’ve done a lot of other things with this great plugin so let me know if trouble and I may have already navigated through it.
Forum: Plugins
In reply to: Woocommerce "Add to Cart" checkmark bugNo problem! However, I discovered a slight error on my part. That fix seems to work but I didn’t target exactly what I wanted to. That code I gave you may change the padding of your button. So, the right code that works great for me now is below and it should work for you. If not let me know and sorry for the error before.
a.added_to_cart.wc-forward {padding-left: 12px;}That code specifically targets “View Cart” part and gives it padding not the button as before.
Forum: Plugins
In reply to: Woocommerce "Add to Cart" checkmark bugmdanics – try changing “padding-left:12px;” to
padding-left:14px;When I was testing on your site that was enough to knock down “view cart” under the button and have the check mark show to the right.
Hope that works for you!
Forum: Plugins
In reply to: Woocommerce "Add to Cart" checkmark bugmdanics can you give me a link to your site with the issue. It may be possible that your code structure may be a bit different than mine depending on the version. Basically, if you can find the view cart element and give it some padding that’s what you need to do.
However, if you can give me site I’ll find right code for you and paste.
Forum: Plugins
In reply to: Woocommerce "Add to Cart" checkmark bugI’m having a problem with the Woocommerce plugin on my site. Every time I click “Add to cart” button, the check mark that appears to signify this action is complete shows up over the new “View Cart” text. You can check it you here: http://chocolatehollowvt.com/shop/
Any suggestions?
Thanks!
tcohen17,
I stumbled upon this same issue with the check mark showing directly over “view cart.” What I did that fixe it for me was to override the css with the following code to add a little padding and drop the “view cart below.”
.woocommerce ul.products li.product a, .woocommerce-page ul.products li.product a{padding-left:12px;}Hope that does it for you and you made need to adjust padding more or less depending on your situation.
Forum: Plugins
In reply to: Woocommerce "Product Successfully Added to Cart" Colors and remove checkmarkAlso, when I’m on the product page and I click “Add to Cart”, a small purple checkmark comes up on top of the “view cart” text. I’d like to move the “view cart” text over to the right slightly and change the color of the checkmark. How would I go about doing this? Thanks for any and all help!
Hey mrajecki,
I stumbled upon this same issue with the check mark showing directly over “view cart.” WHat I did that fixe it for me was to override the css with the following code to add a little padding and drop the “view cart below.”
.woocommerce ul.products li.product a, .woocommerce-page ul.products li.product a{padding-left:12px;}Hope that does it for you and you made need to adjust padding more or less depending on your situation.
Forum: Plugins
In reply to: [OTW Portfolio Light] otw_filterable not workingI had the same issue and discovered there was an error with the jquery.quicksand.js file. This plugin uses quicksand version 1.3, which includes a deprecated value in it for IE and makes it invalid.
Just download the updated version of quicksand 1.4: https://raw.githubusercontent.com/razorjack/quicksand/v1.4/jquery.quicksand.js
Of course, you’ll need to access your ftp and go to the otw plugins folder > js and you see the file I am talking about. Keep the filename the same and just replace. That worked for me!