• Resolved Shrikant Joshi

    (@shrikantjoshi)


    I tried uploading a header image (.png file) of dimensions 358×134 px and I got these warnings – seems like my file permissions are causing the problem. Should I chmod the wp-uploads folder to 755 – is that what it is saying??

    Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /%PATH%/%WP_PLUGIN_PATH%/register-plus-redux/register-plus-redux.php on line 454
    
    Warning: getimagesize(%PATH%/wp-content/uploads/logo_login1.png) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /%PATH%/%WP_PLUGIN_PATH%/register-plus-redux/register-plus-redux.php on line 454

    Anybody else get this error? How did you resolve it?

    PS: This might be unrelated, but I also just realized my jQuery-based functions aren’t working either! For example, the “Add Custom field” and the Add invite code and the reset arrows/logos/buttons next to form-fields are all “dead”. Conflict with another plugin? ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author radiok

    (@radiok)

    You could add allow_url_fopen = ‘on’ to your php.ini file and see if that resolves the issue. allow_url_fopen is normally enabled by default (which isn’t necessarily a great thing). To really resolve this issue, I’d need to have Redux create local links. But half the functionality of adding a URL field was to be able to point to remote images (which I’m not even sure anyone does). Also, having Redux write a local url isn’t the end of the world when uploading a image via Redux, but if you wanted to use an image previously uploaded, or somewhere other then the wp_uploads folder you’d need to write a local url which isn’t always fun. Still, things to consider. Anyway, check you php.ini file first and we’ll go from there.

    As for jQuery, I can say with some certainty, you are using Firefox, apparently the E4X code I wrote writing HEREDOC using CDATA doesn’t work in Internet Explorer. So, once it chokes on that all subsequent JS is hosed. I’m looking for a resolution, I’m just not sure how to take a multiline value out of the WP database and convert to to a single line. Hopefully I’ll crack that nut soon. Sorry for the inconvenience.

    Thread Starter Shrikant Joshi

    (@shrikantjoshi)

    I’m on a shared hosting account currently, so I can’t make changes to my php.ini file unfortunately! I guess I’ll have to wait until I move to a dedicated server in the future…

    And as for the jQuery issue, I’m on Chrome v6.0 & since I’m not a coder, I didn’t really understand what you said. I’m guessing you’re running into jQuery ‘choking problems’ trying to use the E4X standard instead of, well, whatever is used instead. ??

    Oh well, I can wait – no hurry! ??

    Plugin Author radiok

    (@radiok)

    shrikantjoshi, I’ve been considering adding a little workaround for this problem that will stop getimagesize from being executed. I only hit that function to define the absolute size of the image, but that’s not really essential, it’s just good HTML practice. My ‘fix’ would just not check the length and width of the image. I’m not sure it’s worth adding yet another option if no one’s going to use it though. Your thoughts?

    Plugin Author radiok

    (@radiok)

    shrikantjoshi, I added a “hack” to Redux in 3.6.22 called, “URL File Access is Disabled”, with this hack enabled Redux will no longer try to determine the length and width of your custom logo and that will prevent this error from happening. As a result, your custom logo must have the exact same size as the default logo, 326×67.

    Thread Starter Shrikant Joshi

    (@shrikantjoshi)

    radiok, sorry for the delay in replying – we’re currently celebrating Diwali – a festival of lights in India – and things have been pretty relaxed around here. As a result, I haven’t been able to give due focus to your suggestions. Sincere apologies! ??

    I’m honored that you actually gave my problem so much consideration. I thought about the workaround and realized that having a workaround that violates good HTML practice is a VERY risky idea, am I right? Of course, I’m happy that I’ll be able to use a custom logo for the site but I don’t want that to happen at the cost of good, valid HTML code! ??

    Having said that, I must mention that I have installed the latest update & will test it out soon. ??

    All in all, I’m just a cog-in-the-wheel. The development path for the plugin is far bigger than the needs of a tiny little cog. Think about it. ??

    Cheers!
    Shrikant

    Plugin Author radiok

    (@radiok)

    shrikantjoshi, not defining the image size might not be the best HTML, but it’s not much of a violation. After you brought this problem up, I stumbled upon another forum with someone having the same problem. Unfortunately, not everyone can modify their php.ini file, so I thought this work around would be good people in the same boat as you.

    In the world of open source development I consider us all cogs and all engines, each cog turning the other, we are all contributing just a little, but it turns into something greater, so, any feedback big or small is appreciated, in my opinion.

    Would it be appropriate to wish you a happy holiday? Regardless, have a good time!

    Thread Starter Shrikant Joshi

    (@shrikantjoshi)

    You, sir, are a rockstar! Another beer for you! ??

    And yes, thanks for the wishes. These are, indeed, happy holidays for us – one can think of them as the equivalent of the Christmas holidays in the US… ??

    Cheers!
    Shrikant

    PS: The rate you’re stacking these beers up, I might have to buy all the beer in Pune when you come down!

    Hi,

    how can I change the standard size to something different then 326×67 px.
    My Logo is 300x141px. Can I hardcode it somewhere for my purpose?

    Thomas

    Plugin Author radiok

    (@radiok)

    Are you having the URL file-access denied error?

    I am having this issue when trying to upload or externally access a 300×72 image (Register Plus Redux v.3.7.3 and WordPress v.3.1.2). I am on a shared hosting account so I cannot access my php.ini file.

    Whether I attempt to upload my 300×72 logo through the plugin settings screen, or whether I use a URL to my 300×72 logo stored on my shared hosting account, I get the following error messages:

    Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /home/nutterz/public_html/technet/wp-content/plugins/register-plus-redux/register-plus-redux.php on line 487

    Warning: getimagesize(https://nztechnet.com/wp-content/uploads/2011/04/logo.png) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /home/nutterz/public_html/technet/wp-content/plugins/register-plus-redux/register-plus-redux.php on line 487

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Register Plus Redux] Warning: getimagesize(): URL file-access is disabed…’ is closed to new replies.