Hunchback
Forum Replies Created
-
Forum: Plugins
In reply to: Woocommerce no longer showing VAT in orders/invoicesAnother bump… come on guys, this is important! No one had this problem before?
Forum: Plugins
In reply to: Woocommerce no longer showing VAT in orders/invoices*bump*
Forum: Fixing WordPress
In reply to: How to fully Backup my siteTo 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…
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.
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?
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.phpfunction 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;
———–