opencart blank admin module page - module

I working with opencart Version 2.0.3.0 well the site was working perfectly. But suddenly in admin panel module page shows a blank page.
I've enabled the display errors. But it seems that this problem is not based on the listed errors.
Using the backup file replaced the file in admin/controller/extension/module.php but which is not solving the issue.
This is what I'm getting after displaying the errors.
Warning: fopen(/var/www/html/xxxxxxxxxxx.xxx/system/logs/error.txt): failed to open stream: Permission denied in /var/www/html/xxxxxxxxxxx.xxx/system/library/log.php on line 6
Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/xxxxxxxxxxx.xxx/system/library/log.php on line 10
Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/xxxxxxxxxxx.xxx/system/library/log.php on line 10
Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/xxxxxxxxxxx.xxx/system/library/log.php on line 10
Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/xxxxxxxxxxx.xxx/system/library/log.php on line 10
and I think this is not the issue, These errors were there before this issue.
How can I solve the issue?

Related

Error creating Email for addon domain Cpanel

hey guys I need your godly advice I have set up my Webhosting from a NON-cpanel server to a cpanel server and am trying to create an email account for one of my addon domains EG main domain is EG main.com addon new_main.com so I try and create for my addon in cpanel like email#new_main.com and I am met with this error. please note I used to years ago be on cpanel so it may have brought files from the old install over to this new install which is possibly causing the issue but I'm lost trying to figure out what's wrong
fingers crossed you guys can see the error I have been looking at this for a day now and I still can't seem to figure out, I have looked for the files mentioned and some are there 1 of them isn't cant remember which and I don't know how to remedy the situation thanks in advance
The error looks like this
Error: The operation “POST” “/cpsess8393558881/execute/Email/add_pop” failed with a “The system could not create the calendar “Calendar” for “contact#combatprosports.co.uk”: Cpanel::Exception::Database::Error/(XID rg8xc9) The system received an error from “SQLite”: SQLITE_READONLY (attempt to write a readonly database) at /usr/local/cpanel/Cpanel/DBI.pm line 200. Cpanel::DBI::_create_exception(Cpanel::DBI::db=HASH(0x2b39d20), "DBD::SQLite::db do failed: attempt to write a readonly database", undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 188 Cpanel::DBI::_error_handler("DBD::SQLite::db do failed: attempt to write a readonly database", Cpanel::DBI::db=HASH(0x2b39d20), undef) called at /usr/local/cpanel/Cpanel/DAV/Backend/DB/Horde.pm line 79 eval {...} called at /usr/local/cpanel/Cpanel/DAV/Backend/DB/Horde.pm line 79 Cpanel::DAV::Backend::DB::Horde::do(Cpanel::DBI::db=HASH(0x2b39d20), " INSERT INTO kronolith_shares\x{a} (share_name, share_owner"..., "14a47cf5-a4b7-b2f9-5d71-7e972f886226", "contact\#combatprosports.co.uk", "Calendar", "This is your personal calendar.", "#641f76") called at /usr/local/cpanel/Cpanel/DAV/Backend/HordeCalendar.pm line 82 Cpanel::DAV::Backend::HordeCalendar::create_calendar(Cpanel::DAV::Principal=HASH(0x281d938), "Calendar", "This is your personal calendar.") called at /usr/local/cpanel/Cpanel/DAV/Calendars.pm line 59 Cpanel::DAV::Calendars::create_calendar(Cpanel::DAV::Principal=HASH(0x281d938), "Calendar", "This is your personal calendar.") called at /usr/local/cpanel/Cpanel/DAV/Defaults.pm line 55 Cpanel::DAV::Defaults::create_calendar(Cpanel::DAV::Principal=HASH(0x281d938)) called at /usr/local/cpanel/Cpanel/DAV/Defaults.pm line 142 Cpanel::DAV::Defaults::create_calendars_and_address_books("contact\#combatprosports.co.uk") called at /usr/local/cpanel/Cpanel/API/Email.pm line 1478 Cpanel::API::Email::add_pop(Cpanel::Args=HASH(0x2451f80), Cpanel::Result=HASH(0x244a6d8)) called at /usr/local/cpanel/Cpanel/API.pm line 366 eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 368 Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x2451f80), Cpanel::Result=HASH(0x244a6d8), "Email", "add_pop") called at /usr/local/cpanel/Cpanel/API.pm line 243 Cpanel::API::execute("Email", "add_pop", HASH(0x244a588)) called at /usr/local/cpanel/Cpanel/API.pm line 651 Cpanel::API::run_api_mode(HASH(0x244a588)) called at uapi.pl line 307 main::script() called at uapi.pl line 139 ” error.```
The error message contains the following:
SQLITE_READONLY (attempt to write a readonly database)
This is not normal and suggests that there is a problem with the server's disks. You should reach out to your hosting provider, or if you are the owner of the server, a systems administrator that has the skills, training, and experience required to check the status of the disks, and/or determine why the SQLITE database is readonly.

SDL_CreateWindowFrom vs SDL_DestroyWindow X11 error SDL2

I get a window ID from the command line, and create an SDL window with it:
Window window_id = from_cli(); // e.g. 0x34000c8
w = SDL_CreateWindowFrom((void*) (Window) window_id);
When my program finishes I try to clean up:
SDL_DestroyWindow(w);
And that is when I got an X11 error:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x34000c8
Serial number of failed request: 255
Current serial number in output stream: 256
Obviously, the caller of my program - which I cannot change - has already destroyed the X window I was using.
How should I handle this situation?
SDL_DestroyWindow() can be omitted if the SDL window was created with SDL_CreateWindowFrom()
go for SDL_SysWMinfo, pick up x11.display, create my own X11 error handler, and filter errors for window_id?
Looking at the SDL2-2.0.9 source code, it seems that SDL already sets an error handler, which calls the previous error handler, which is the default one that terminates the program on error. (src/video/x11/SDL_x11video.c::X11_SafetyNetErrHandler())
Internally SDL will override this error handler temporarily, when doing its own stuff. (src/video/x11/SDL_x11video.c::X11_CheckWindowManager())
Thus, I guess 2) is the correct way to go.
EDIT:
When omitting SDL_DestroyWindow(), SDL_Quit() will fail with the same X error.
I also realized that SDL may not anticipate a failed X call, so ignoring the error may not be a good idea, after all.
EDIT2:
I just realized that SetErrorHandler() does not require a display.
Adding an X error handler that ignores X errors regarding this particular X window seems to work, not sure if it creates new problems unseen.
Is there preferred way to handle this problem?
Version:
SDL2-2.0.9

Getting "Connection is not recognized as a valid connection manager type" error in SSIS 2008 R2, but package runs fine

One of my primary SSIS import packages has been showing the following error the last few times it's been run. The data loads exactly how it should, just with this one error which doesn't seem to make a real difference. I would like to get it cleared up though.
Here is the error:
Error 1 Error loading Update.dtsx: The connection type "OLEDB" specified for connection manager "SQL.Staging" is not recognized as a valid connection manager type. This error is returned when an attempt is made to create a connection manager for an unknown connection type. Check the spelling in the connection type name. D:\SSIS Projects\Update.dtsx 1 1
Error 2 Error loading Update.dtsx: Error loading value " 0 SQL.Staging {925404E7-27AA-4C4E-337B-D6058341" from node "DTS:ConnectionManager". D:\SSIS Projects\Update.dtsx 1 1
Error 3 Error loading 'Update.dtsx' : The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails. . D:\SSIS Projects\Update.dtsx 1 1
As I said, the package runs fine. It doesn't seem to have any issues with the OLEDB source or destination's, which is what the error seems to indicate. Any other recommendations? Thanks!

T4MVCVB doesn't work on clean install?

I just installed T4MVCVB and it won't compile:
Error 1 Compiling transformation: Invalid token 'this' in class, struct, or interface member declaration c:\...\T4MVCVB.tt 1 1
Error 2 Compiling transformation: Method must have a return type c:\...\T4MVCVB.tt 1 6
Error 3 Compiling transformation: Type expected c:\...\T4MVCVB.tt 1 12
Note that the line number is 1 for each of these errors, so there's no way at all to see what line it doesn't like.
How can I figure out what the problem is so I can generate typed helpers for VB?
Edit: After some cleanup, now I get the following compiler error, and the line number of the problem:
Error 112 Running transformation: System.NotImplementedException: Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))
at EnvDTE80.CodeFunction2.get_Attributes()
at {long call stack}
The line it doesn't like is:
// Ignore methods that are marked as not being actions
if (GetAttribute(method.Attributes, "System.Web.Mvc.NonActionAttribute") != null)
continue;
Make sure you are using the latest version made for VB. Here is the T4MVCVB Nuget Package
If it's still breaking before generating the .vb files, I would uncomment these two lines near the top of T4MVCVB.tt and see if you can find the problem location.
//System.Diagnostics.Debugger.Launch();
//System.Diagnostics.Debugger.Break();

How can can I save my php created pdf file on a specific directory?

I need to convert a dynamic web page to pdf... So as a start, I use this code for practice,
This works fine as long as I use the directory c:/test.php. But everytime I change the directory to something like d:/xampp/htdocs/test.php I get the error message:
Fatal error: Uncaught exception 'PDFlibException' with message 'pdf_begin_document() expects exactly 3 parameters, 2 given' in D:\xampp\htdocs\mypdftest\pdf_file.php:1… Stack trace: #0 D:\xampp\htdocs\mypdftest\pdf_file.php(1… pdf_begin_document(Resource id #2, 'test.pdf') #1 {main} thrown in D:\xampp\htdocs\mypdftest\pdf_file.php on line 18
Please tell me what's going wrong and how to fix it... Any help is appreciated...
Read the documentation on this one. It seems that the function pdf_begin_document() accepts 3 mandatory parameters, which are:
PDF_begin_document($pdfdoc, $filename, $optlist );
where $optlist is an option list (not much documentation here), like this example:
$optlist = "destination={page=1 type=fixed zoom=1 top=100 left=50}";