All Questions
4 questions
-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, ...
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 (...
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 ...
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 ...