Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
1 answer
77 views

Can't upload my custom plugin because of a Warning: dirname()

I have created a custom wordpress plugin in local. I wanted to upload it on a website but now when I try to activate I get a error. This is the error: Warning: dirname() expects exactly 1 parameter, ...
kcr's user avatar
  • 37
2 votes
4 answers
12k views

Get URL of the current file with PHP

I have a PHP Class written for use in WordPress themes or plugins that loads some JS and CSS using enqueue_script and enqueue_style when the Class is initialized. I need to dynamically get the URL (...
Darren Cooney's user avatar
1 vote
2 answers
1k views

Advanced Custom Fields: dirname( __FILE__) returning wrong URL on shared server for CSS and JS includes

I'm adding Advanced Custom Fields Pro (v5) to a simple plugin I'm creating. I'm using the tutorial on the ACF website: Distributing ACF in a plugin/theme. The tutorial calls for using ...
Mark Rummel's user avatar
  • 2,940
0 votes
1 answer
3k views

WordPress - File(/) is not within the allowed path(s)

I have something really strange after moving an WordPress to my Server: Wed Aug 27 18:10:43 2014] [warn] [client 77.21.106.179] mod_fcgid: stderr: PHP Warning: is_dir(): open_basedir restriction in ...
lippoliv's user avatar
  • 727