Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Hunchback

    (@hunchback)

    Another bump… come on guys, this is important! No one had this problem before?

    Thread Starter Hunchback

    (@hunchback)

    *bump*

    Hunchback

    (@hunchback)

    To set your folder to writable, you have to connect to your FTP and find the folder indicated by the plugin, then set the writing permissions to 0755. How you do that depends on the FTP client you are using, but you can usually right click the folder and somewhere you should have “write permissions” or something of the sort…

    Thread Starter Hunchback

    (@hunchback)

    I see…
    I am a systems and networks engineer so i only know basic code really…

    What bothers me with this solution is that the next time i update the theme it will probably break again, since this widget comes with the theme. I tried deleting the widget .php file altogether, but then there’s another error produced, cause the theme is looking for the widget and fails to find it.

    Is there no way to get your plugin and that widget work with a warning instead of a critical error?

    I’ll report that to the theme author too, so that he knows.

    Thread Starter Hunchback

    (@hunchback)

    Update:

    I commented out that section of the code in the widget, since it’s not even a widget that we are using. The PDF generated correctly.

    I am not sure if this is a solution tho, since the problem must have appeared when we last update the theme and we somehow didn’t notice it. Perhaps no PDF Invoices have been generated lately, can’t say since i am not running the shop itself, i am doing the technical part of it.

    Could you explain what’s wrong, and if there’s another way to fix this?

    Thread Starter Hunchback

    (@hunchback)

    Hey,

    The HTML generated is simply this:

    <html>
    <head></head>
    <body>
    </body>
    </html>

    The debug gave me back this:

    Fatal error: Cannot redeclare build_url() (previously declared in /mnt/web7/c1/04/54024604/htdocs/WordPress_01/wp-content/themes/zonda/lib/widgets/facebook-like-widget.php:304) in /mnt/web7/c1/04/54024604/htdocs/WordPress_01/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/functions.inc.php on line 170

    Edit:
    Here’s the code from the widget.php

    function build_url($url_data) {
    $url=””;
    if (isset($url_data[‘host’])) {
    $url .= $url_data[‘scheme’] . ‘://’;
    if (isset($url_data[‘user’])) {
    $url .= $url_data[‘user’];
    if (isset($url_data[‘pass’]))
    $url .= ‘:’ . $url_data[‘pass’];
    $url .= ‘@’;
    }
    $url .= $url_data[‘host’];
    if (isset($url_data[‘port’]))
    $url .= ‘:’ . $url_data[‘port’];
    }
    if (isset($url_data[‘path’]))
    $url .= $url_data[‘path’];
    if (isset($url_data[‘query’]))
    $url .= ‘?’ . $url_data[‘query’];
    if (isset($url_data[‘fragment’]))
    $url .= ‘#’ . $url_data[‘fragment’];

    return $url;

    ———–

Viewing 6 replies - 1 through 6 (of 6 total)